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've a table like
Originator | Client_Name | CF_ZK | CF_SH | CF_GOS | CF_EFY | Origination Credit USD |
EFY | aaa | 20 | 40 | $1073 | ||
SH | bbb | 13.33 | 40 | 20 | $4451 | |
NS | vvv | 6.67 | 80 | $1798 | ||
NS | ccccc | 6.67 | 80 | $1798 | ||
ZK | xxx | 6.67 | 80 | $899 | ||
ZK | vgrgtg | 6.67 | 80 | $899 |
I'd like to show the first row where Origination Credit USD is minimum,
The expected results in the table should be
ZK | xxx | 6.67 | 80 | $899 |
Is there a way to do it?
Solved! Go to Solution.
Hi @jaweher899 ,
For the requirement of showing first row, you need to add an index column in Power Query.
Then go back to Power BI Desktop and create the following two measures.
Index of MinUSD =
IF (
SUM ( 'Table'[Origination Credit USD] )
= MINX ( ALLSELECTED ( 'Table' ), [Origination Credit USD] ),
SUM ( 'Table'[Index] )
)
FirstRow =
IF (
MINX ( ALLSELECTED ( 'Table' ), [Index of MinUSD] ) = SUM ( 'Table'[Index] ),
1
)
Put the "FirstRow" meausre into the visual-level filters and set up show items when the value is 1.
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @jaweher899 ,
For the requirement of showing first row, you need to add an index column in Power Query.
Then go back to Power BI Desktop and create the following two measures.
Index of MinUSD =
IF (
SUM ( 'Table'[Origination Credit USD] )
= MINX ( ALLSELECTED ( 'Table' ), [Origination Credit USD] ),
SUM ( 'Table'[Index] )
)
FirstRow =
IF (
MINX ( ALLSELECTED ( 'Table' ), [Index of MinUSD] ) = SUM ( 'Table'[Index] ),
1
)
Put the "FirstRow" meausre into the visual-level filters and set up show items when the value is 1.
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
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 |
---|---|
111 | |
97 | |
80 | |
69 | |
59 |
User | Count |
---|---|
150 | |
119 | |
104 | |
87 | |
67 |