Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
I am trying to place a card highlighting the facility with the biggest net loss on a report. The net loss is a Measure calculation, _Net New, and the lowest value is the biggest 'loss'.
I used a quick measure to calculate the smallest gain, but am stumped how to tie this back to the category name to display in a card.
The measure for calculating biggest drop:
_Largest Net Loss by Facility =
MINX(
KEEPFILTERS(VALUES('Facilities'[FacilityName])),
CALCULATE(_Measures[_Net New])
)
Solved! Go to Solution.
Hi @mbixby ,
I create a simple example. Is this what you want?
Facility of Minimal Net =
CALCULATE (
MIN ( 'Facilities'[FacilityName] ),
FILTER ( Facilities, [Net]= MINX ( ALL(Facilities), [Net] ) )
)
Best Regards,
Icey
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @mbixby ,
I create a simple example. Is this what you want?
Facility of Minimal Net =
CALCULATE (
MIN ( 'Facilities'[FacilityName] ),
FILTER ( Facilities, [Net]= MINX ( ALL(Facilities), [Net] ) )
)
Best Regards,
Icey
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Icey thank you for the solution . Can you please guide what changes need to be taken in order to have second lowest value. In this case it should return 'B'? Many thanks in advance.
Hi @Anonymous ,
You will have to identify the second lowest value - either with TOPN (with ASC sort) or a RANK method - and then perform a similiar matching operation as @Icey recommended.
See https://community.powerbi.com/t5/Desktop/Return-second-biggest-value/td-p/688506 for example of TOPN.
hth!
-mbixby
Hi,
Share some data and show the expected result.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
112 | |
100 | |
76 | |
74 | |
49 |
User | Count |
---|---|
145 | |
108 | |
107 | |
89 | |
61 |