Forum Discussion
troy8
9 years agoNew Member
New Measure question and data structure
I have a set of sales data that shows the sales by month for each region for each product. I want to calculate the number of each product sold for each region per day I was open. If I write it a...
- 9 years ago
What does your source table look like?
I assume you should have a fact table which contains the sales per product per month per region. Then you suppose to have another table which includes the opendays associated to each month.
You just nees to build the relationship between two tables on Month columns.
Then you can easily have sales divided by OpenDays.
sales per day = 'Table 2'[Sales]/RELATED('Month'[OpenDays])Regards,
v-sihou-msft
9 years agoMicrosoft Employee
What does your source table look like?
I assume you should have a fact table which contains the sales per product per month per region. Then you suppose to have another table which includes the opendays associated to each month.
You just nees to build the relationship between two tables on Month columns.
Then you can easily have sales divided by OpenDays.
sales per day = 'Table 2'[Sales]/RELATED('Month'[OpenDays])
Regards,