Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
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 calculate formula to do so, it seems I would have to write a seperate calculate formula for each month and product (i.e. 12 different new measures). Am I thinking about this wrong? Or is there a way to do it where it knows to do it for each month (i.e. one formula). Or is there no way to it this way based on the structue of the data? Do I need to restructure it (i.e. unpivot the months to a column).
Appreciate any feedbackon this as new to Power BI.
Thanks.
Solved! Go to Solution.
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,
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,
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!