Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers!
Enter the sweepstakes now!Prepping for a Fabric certification exam? Join us for a live prep session with exam experts to learn how to pass the exam. Register now.
Hi All
I have a table display YTD GP% , May i know how to capture the lowest GP% .
Above link is my PBI sample file :-
Paul Yeo
Solved! Go to Solution.
Hey @admin11 ,
you have to build this table first internally and then get the minim value. Try the following measure:
Min GP% =
VAR tempTable =
ADDCOLUMNS ( SUMMARIZE ( SALES, SALES[inv] ), "GP% YTD", [GP% YTD] )
VAR result =
MINX ( tempTable, [GP% YTD] )
RETURN
result
If you need any help please let me know.
If I answered your question I would be happy if you could mark my post as a solution ✔️ and give it a thumbs up 👍
Best regards
Denis
Blog: WhatTheFact.bi
Edit: @SamFischer was faster, his solution should work as well 🙂
Hey @admin11 ,
you have to build this table first internally and then get the minim value. Try the following measure:
Min GP% =
VAR tempTable =
ADDCOLUMNS ( SUMMARIZE ( SALES, SALES[inv] ), "GP% YTD", [GP% YTD] )
VAR result =
MINX ( tempTable, [GP% YTD] )
RETURN
result
If you need any help please let me know.
If I answered your question I would be happy if you could mark my post as a solution ✔️ and give it a thumbs up 👍
Best regards
Denis
Blog: WhatTheFact.bi
Edit: @SamFischer was faster, his solution should work as well 🙂
Hi @admin11,
You'd have to iterate over the [GP% YTD] measure for each invoice, and find the minimum value from that. Try the measure below... (note that you'll want to replace 'Table' with whatever the home table for the inv column is)
Min GP % =
VAR GPbyInvTable =
SUMMARIZE ( VALUES ( 'Table'[inv] ), 'Table'[inv], "GP% YTD", [GP% YTD] )
RETURN
MINX ( GPbyInvTable, [GP% YTD] )
Cheers,
Sam
Blog: ApexInsights.net
Check out the May 2025 Power BI update to learn about new features.
Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.
User | Count |
---|---|
74 | |
72 | |
71 | |
49 | |
45 |
User | Count |
---|---|
46 | |
38 | |
29 | |
28 | |
28 |