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!Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
Hi Gurus,
I need to creat a measure that gets the max average for all the site locations
in the below case I need the average for all the sites to be 7212 regardless of the Location.Site.
this average gets calculated by dividing the Actual measure dividing by Months ( that is current monts of the year)
any help would be really appriciated.
measure for actual is as below.
******
*******
Solved! Go to Solution.
@amalrio So this doesn't work?
Average Measure =
VAR __Table = SUMMARIZE(ALL('Table'),[Location.Site],"__Actual",[Actual])
VAR __Max = MAXX(__Table,[__Actual])
RETURN
DIVIDE(__Max,[Months])
@amalrio This looks like a measure aggregation problem. See my blog article about that here: https://community.powerbi.com/t5/Community-Blog/Design-Pattern-Groups-and-Super-Groups/ba-p/138149
The pattern is:
MinScoreMeasure = MINX ( SUMMARIZE ( Table, Table[Group] , "Measure",[YourMeasure] ), [Measure])
MaxScoreMeasure = MAXX ( SUMMARIZE ( Table, Table[Group] , "Measure",[YourMeasure] ), [Measure])
AvgScoreMeasure = AVERAGEX ( SUMMARIZE ( Table, Table[Group] , "Measure",[YourMeasure] ), [Measure])
etc.
thansk for the reply, but it does not seems to produce the expceted result,
Hope some wizard out there who can help me out 🙂
@amalrio So this doesn't work?
Average Measure =
VAR __Table = SUMMARIZE(ALL('Table'),[Location.Site],"__Actual",[Actual])
VAR __Max = MAXX(__Table,[__Actual])
RETURN
DIVIDE(__Max,[Months])
Thanks a lot for the prompt reply, how could I ingest YTD filter tabel into this calculation, it seems to pickup the entire dataset (as we are clearing fliters with ALL ?). I tried your table (__Table) ingets with below YTD date set, it does not seem to do the trick.
see below my code. Thanks heaps taking this far.
**************************************************
Hi @Greg_Deckler ,
Instead of ALL, I wrap the selection around ALLSELECTED instead. that seems to be worked for me as I expected. I will accept your post as a solution since you gave me the direction needed, (maybe you can update your code with ALLSELECTED Instead for clarity.
Thanks a lot WIZARD :)..
Below is my code that worked for me..
*********************************************************
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the February 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 51 | |
| 47 | |
| 29 | |
| 15 | |
| 14 |
| User | Count |
|---|---|
| 88 | |
| 73 | |
| 39 | |
| 26 | |
| 24 |