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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Surekha_PM
Helper III
Helper III

Maximum of Calculated Measurement to get the Text Value

Hello,

I have one column which is a calculated measurement and one column which comes from the table and has text value. I need to show the maximum of the measurement value and show in the card the text value. 

For example, if I add the measurement and text in one table, this is how it will look like below

Percentage (calculated)Name (Included in Table)
19.37%A
12.35%B
6.09%C
5.89%D
5.74%E


I need to show "A" data in card. And it should also change as per the filter. I used below function but it didn't work

VAR MaxValue = [MaxCalculatedMeasureValue]
RETURN
MAXX(
FILTER(
'YourTableName',
[CalculatedMeasure] = MaxValue
),
'YourTableName'[TextColumn]
)

Any suggestions please.

Thanks & Regards,
Surekha

1 ACCEPTED SOLUTION
Surekha_PM
Helper III
Helper III

Hi @bhanu_gautam,

I am able to fix the issue now. Basically, I took a different approach, which included less efforts. Instead of createing another formula, I created a Multi-row Card and added the dimension and measurement in it. Now, for the measurement, I am filtering Top 1 and am able to see the Top Name in the card. I have removed the measurement value from the Multi-Row card and now able to get the result which was needed. 

This solution will help to those who are still struggling with this issue.

Regards,
Surekha

View solution in original post

9 REPLIES 9
Surekha_PM
Helper III
Helper III

Hi @bhanu_gautam,

I am able to fix the issue now. Basically, I took a different approach, which included less efforts. Instead of createing another formula, I created a Multi-row Card and added the dimension and measurement in it. Now, for the measurement, I am filtering Top 1 and am able to see the Top Name in the card. I have removed the measurement value from the Multi-Row card and now able to get the result which was needed. 

This solution will help to those who are still struggling with this issue.

Regards,
Surekha

@Surekha_PM , That's great




Did I answer your question? Mark my post as a solution! And Kudos are appreciated

Proud to be a Super User!




LinkedIn






Surekha_PM
Helper III
Helper III

Hello,

Can anyone help me with this query?

Regards,

bhanu_gautam
Super User
Super User

@Surekha_PM , Update your measure as

 

MaxTextValue =
VAR MaxValue = CALCULATE(MAX('YourTableName'[CalculatedMeasure]))
RETURN
CALCULATE(
MAXX(
FILTER(
'YourTableName',
'YourTableName'[CalculatedMeasure] = MaxValue
),
'YourTableName'[TextColumn]
)
)




Did I answer your question? Mark my post as a solution! And Kudos are appreciated

Proud to be a Super User!




LinkedIn






Hi @bhanu_gautam,

Thank you for your reply. 

I am getting this error everytime:

Column 'CalculatedMeasure' in table YourTableName' cannot be found or may not be used in this expression.

Any idea what is this?

Regards,
Surekha

Replace it with column 

 

VAR MaxValue = [MaxCalculatedMeasureValue]

RETURN which you have used in your measure




Did I answer your question? Mark my post as a solution! And Kudos are appreciated

Proud to be a Super User!




LinkedIn






Hi @bhanu_gautam,

Sorry, I didn't get your answer. Could you please elaborate a bit?

Regards,
Surekha

@Surekha_PM , Can you share sample data or PBIX file




Did I answer your question? Mark my post as a solution! And Kudos are appreciated

Proud to be a Super User!




LinkedIn






Hi ,

I won't be able to share the PBIX file. But here is the formula I am using to get the calculated meeasurement sharedd above.

1st Measurment= CALCULATE(COUNT(Table[Name]),Table[Win]>0,ALL(Table[Name]))

 

CalculateMeasurement (added in the above table)=

var X= CALCULATE(COUNT(Table[Name]),Table[Win]>0)

Var A= DIVIDE(x,[1st Measurment])

Return

Once I run this formula I am getting below table.

Percentage (calculated)Name (Included in Table)
19.37%A
12.35%B
6.09%C
5.89%D
5.74%E



The Name column has been used to generate the calculated measurement. And the same we are trying to show in MAX function. Is it because of that?

Regards,
Surekha





Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors