Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by watching the DP-600 session on-demand now through April 28th.
Learn moreJoin the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now
Hi All,
Here is my problem.
I have a simple table with transactions with different supply centers and different prices.
I have created a table where I have the 3 supply centers and the average price for each of them.
Now I would like to display the minimum value amongst the three "average prices".
The difficulty is that the MIN value should be obtained by iterating through the 3 average prices. In the report visual (table), I would like to see what is shown in the below picture. The second column is a simple average and the third one corresponds to the MIN of the second one.
Here is a pbix file.
Here is the expected result.
Thanks in advance for your help.
Solved! Go to Solution.
Price (Average) - MIN All Supply Center v2 =
MINX (
CALCULATETABLE(
ADDCOLUMNS ( VALUES ( Data[supply_center] ), "Price", [Price (Average)] ),
REMOVEFILTERS(Data)
),
[Price]
)
Hi there!
Try this!
Price (Average) - MIN All Supply Center v3 =
VAR _Value =
MINX (
ALL ( Data[supply_center] ),
CALCULATE( AVERAGE( Data[unit_price] ) )
)
RETURN
IF(
HASONEVALUE( Data[supply_center] ),
_Value,
BLANK()
)
Should return the following:
Let me know if that helps!
I finally found the solution myslef.
Price (Average) MIN v3 =
CALCULATE ( MINX
( VALUES ( Data[supply_center] ) ,
[Price (Average)]
), ALL (Data[supply_center] )
)
I finally found the solution myslef.
Price (Average) MIN v3 =
CALCULATE ( MINX
( VALUES ( Data[supply_center] ) ,
[Price (Average)]
), ALL (Data[supply_center] )
)
Hi there!
Try this!
Price (Average) - MIN All Supply Center v3 =
VAR _Value =
MINX (
ALL ( Data[supply_center] ),
CALCULATE( AVERAGE( Data[unit_price] ) )
)
RETURN
IF(
HASONEVALUE( Data[supply_center] ),
_Value,
BLANK()
)
Should return the following:
Let me know if that helps!
That's a good solution except that the end of the code can be removed in my scenario. thanks for your input !!!
Hi,
I am not sure if I understood your question correctly, but I tried to fix the measure like below.
Please check the below and the attached pbix file whether it suits your requirement.
Price (Average) =
IF (
HASONEVALUE ( Data[supply_center] ),
AVERAGE ( Data[unit_price] ),
MINX (
ADDCOLUMNS (
VALUES ( Data[supply_center] ),
"Price", CALCULATE ( AVERAGE ( Data[unit_price] ) )
),
[Price]
)
)
Price (Average) - MIN All Supply Center v2 =
MINX (
CALCULATETABLE(
ADDCOLUMNS ( VALUES ( Data[supply_center] ), "Price", [Price (Average)] ),
REMOVEFILTERS(Data)
),
[Price]
)
@Arnault_ 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.
Check out the April 2026 Power BI update to learn about new features.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 45 | |
| 38 | |
| 34 | |
| 21 | |
| 17 |
| User | Count |
|---|---|
| 66 | |
| 64 | |
| 31 | |
| 26 | |
| 26 |