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
Hi all,
I have two measures created and they are workiing fine for me so far. i tried to average one of them but i am getting the wrong average.
My measures are below: 1st to count difference in days and 2nd for difference but only counting working days.
Solved! Go to Solution.
Assuming you have only measures in 'Measures Table', that will not work. Typically, you would use AVERAGEX() to iterate over a Dimension table or a virtual table like VALUES() or SUMMARIZE(). For example,
Measure = AVERAGEX(DimensionTable, [YourMeasure])
Measure2 = AVERAGEX(VALUES(Product[ProductID]), [YourMeasure])
What is your goal in averaging over the Measures table?
If this works for you, please mark it as the solution. Kudos are appreciated too. Please let me know if not.
Regards,
Pat
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
@Mous007 , check this file you have a measure that using workday from the calendar
https://www.dropbox.com/s/y47ah38sr157l7t/Order_delivery_date_diff.pbix?dl=0
Refer to 2nd Page
hi @amitchandak , for some reason i cannot open/see the file on the link.
Appreciate you tried to help, thanks
But so far im getting the correct results for my working days, i am just facing an issue averaging the measures above for working days.
i am using the averagex formula:
Assuming you have only measures in 'Measures Table', that will not work. Typically, you would use AVERAGEX() to iterate over a Dimension table or a virtual table like VALUES() or SUMMARIZE(). For example,
Measure = AVERAGEX(DimensionTable, [YourMeasure])
Measure2 = AVERAGEX(VALUES(Product[ProductID]), [YourMeasure])
What is your goal in averaging over the Measures table?
If this works for you, please mark it as the solution. Kudos are appreciated too. Please let me know if not.
Regards,
Pat
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
Hi @mahoneypat , I had a table with the request number and the working days needed to complete each single request.
So based on your reply, i realized that I had to switch my measures from the measures tables to the actual data table. i used the same average calculation and now the average is calculated correctly.
Thanks a lot for the concept clarification.
Best,
Mous
I would stick with measures unless you will be using the column on the axes, legend, etc.
Did you shift the WEEKDAY() in your Date table? If not, your expression is counting Fri and Sat (Sun is WEEKDAY() = 1 by default). Does that fix it?
If this works for you, please mark it as the solution. Kudos are appreciated too. Please let me know if not.
Regards,
Pat
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
HI @mahoneypat ,
please see my date table code below:
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 |
|---|---|
| 103 | |
| 79 | |
| 57 | |
| 51 | |
| 46 |