March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch 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
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
123 | |
85 | |
85 | |
70 | |
51 |
User | Count |
---|---|
205 | |
153 | |
97 | |
79 | |
69 |