Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Maximum Value as KPI

Hi,

 

In my report, I am trying to create a measure that would express the column content that is associated with the highest value.

 

Regarding the dataset, it looks like the following:

NameValue
A7
B

98

C67
D29

 

Therefore, I want the card visual with the measure in it to show the name (here, B) which has the highest value, out of all four.

Do you have suggestions on how to do that? 

2 ACCEPTED SOLUTIONS
Jihwan_Kim
Super User
Super User

Hi, @Anonymous 

Please check the below.

 

Picture2.png

 

The Highest Value Name =
CALCULATE (
MAX ( 'Table'[Name] ),
FILTER ( 'Table', 'Table'[Value] = MAXX ( 'Table', 'Table'[Value] ) )
)

 

 

Hi, My name is Jihwan Kim.

 

If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.

 

Linkedin: linkedin.com/in/jihwankim1975/

Twitter: twitter.com/Jihwan_JHKIM


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

View solution in original post

v-yalanwu-msft
Community Support
Community Support

Hi, @Anonymous ;

you could create a measure as follows:

Maximum KPI = CALCULATE(MAX('Table'[Name]),
TOPN (
1,
'Table',
'Table'[Value], DESC
))

The final output is shown below:

v-yalanwu-msft_0-1622800049539.png

 

Best Regards,
Community Support Team_ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

4 REPLIES 4
v-yalanwu-msft
Community Support
Community Support

Hi, @Anonymous ;

you could create a measure as follows:

Maximum KPI = CALCULATE(MAX('Table'[Name]),
TOPN (
1,
'Table',
'Table'[Value], DESC
))

The final output is shown below:

v-yalanwu-msft_0-1622800049539.png

 

Best Regards,
Community Support Team_ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

Do you have any suggestion what to do in case two Names, lets say A & B have the same value, and their value is the higest of all?

Jihwan_Kim
Super User
Super User

Hi, @Anonymous 

Please check the below.

 

Picture2.png

 

The Highest Value Name =
CALCULATE (
MAX ( 'Table'[Name] ),
FILTER ( 'Table', 'Table'[Value] = MAXX ( 'Table', 'Table'[Value] ) )
)

 

 

Hi, My name is Jihwan Kim.

 

If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.

 

Linkedin: linkedin.com/in/jihwankim1975/

Twitter: twitter.com/Jihwan_JHKIM


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.
Anonymous
Not applicable

Do you have any suggestion what to do in case two Names, lets say A & B have the same value, and their value is the higest of all?

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.