I am new to Data modelling and trying to understand the practical scenario of using star schema model for the business intelligence
below is the example image of star schema model- for a sales table. i understood dimension table and how it is referred in fact table with foreign keys. I have below 2 question
i am trying to understand how value for attributes- usually called measure attributes, in this case 'dollars_sold' and 'unit_sold' are getting defined/populated in fact table?
i believe BI team use this fact table to query for various analytics cases? Please correct me if i am wrong here?
i searched most places, but no where it clearly defined how exactly this measure values are getting retrieved in fact table . is there any query can give with an example

Firstly a Primary key (PK) stores unique values for a column in a relation database.Foreign key(FK) links data in one column with data in the other column. Fact tables contain the actual metrics or values of the attribute. Dimension tables hold the context for the attributes in Fact table.
There are essential two types of columns in Fact tables:
As an example if you wanted to find out the no. of units sold based on the brand or type of item, you cannot retrieve it from the sales table alone, you would have to first get the context by joining the sales table with the items table on the item_key and then retrieve the data.