Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
I am attempting to implement a measure that averages a count over the day of the week for a specified time period. When I used Tableau I was able to accomplish his with Level of Detail calculations. It seems like some combination of CountX and AverageX would do the same in PowerBI. I just can't wrap my brain around how to approach this problem.
Here's an example of what I've tired.
The attached visual is a total count for each day. I'd like to see the average count for a specifed time period for a specific day of the week.
Hi @MichaelWinz ,
I created some data:
Here are the steps you can follow:
1. Create calculated column.
Weekday = WEEKDAY('Table'[Date])
2. Create measure.
Measure =
AVERAGEX(FILTER(ALLSELECTED('Table'),'Table'[Weekday]=MAX('Table'[Weekday])),[Value])
3. Result:
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
This doesn't work in my situation. The measure being summed is always 1. What I need is an Average of Sums Across WeedDays.
Check out the September 2024 Power BI update to learn about new features.
Learn from experts, get hands-on experience, and win awesome prizes.
User | Count |
---|---|
105 | |
99 | |
99 | |
38 | |
37 |
User | Count |
---|---|
157 | |
121 | |
73 | |
73 | |
63 |