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!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi everyone,
I am looking to calculate average daily sales in cards (shown below) based on the time slicers selected:
Currently, my measure is:
Solved! Go to Solution.
try this measure
AvgDailySales =
DIVIDE(
SUM('BSF Files'[12. Sum of Extended Price]),
COUNTROWS(VALUES('Fiscal Calendar'[Date]))
)
Hi @dbarseg1 ,
Thanks @aduguid for the quick reply. Please allow me to provide additional insights:
According to your description, here are my steps you can follow as a solution.
(1) This is my test data.
(2) We can create a measure.
Avg sales = AVERAGEX(ALLSELECTED('BSF Files'),[12. Sum of Extended Price])
(3) Then the result is as follows.
If the above one can't help you get the desired result, please provide some sample data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. Thank you.
Best Regards,
Neeko Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @dbarseg1 ,
Thanks @aduguid for the quick reply. Please allow me to provide additional insights:
According to your description, here are my steps you can follow as a solution.
(1) This is my test data.
(2) We can create a measure.
Avg sales = AVERAGEX(ALLSELECTED('BSF Files'),[12. Sum of Extended Price])
(3) Then the result is as follows.
If the above one can't help you get the desired result, please provide some sample data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. Thank you.
Best Regards,
Neeko Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi Neeko,
Thank you for the images and examples. By showing me the relationships in your tables, I understood that the issue was more with my calendar data than the formula. I changed what columns were shown in my slicers to be corresponding to the Fiscal Year calendar and this fixed the calculation. I followed the connection you made in your example data.
Appreciate your help!!
try this measure
AvgDailySales =
DIVIDE(
SUM('BSF Files'[12. Sum of Extended Price]),
COUNTROWS(VALUES('Fiscal Calendar'[Date]))
)
Thank you! Once I fixed my calendar data relationship, this formula did the same thing as my prior formula. I sincerely appreciate your prompt reply!
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!
| User | Count |
|---|---|
| 21 | |
| 10 | |
| 9 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 35 | |
| 31 | |
| 20 | |
| 13 | |
| 10 |