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

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.

Reply
jay_patel
Helper IV
Helper IV

how to get maximum value

hello  guys

 

looking for a dax,if i filter name "Punit" then the card should give '70' i.e, max for name. 

nametotalmins
punit30
punit50
punit70
punit10
bharat20
bharat20
bharat30
1 ACCEPTED SOLUTION
v-angzheng-msft
Community Support
Community Support

Hi, @jay_patel 

 

I'm not sure you need to get the desired results in table or card visual, so I've provided some of the results you might expect.

Create a measure to use on the card:

max = MAX('Table'[totalmins])

Or you want to get the desired result on the table:

max for name =
CALCULATE ( MAX ( 'Table'[totalmins] ), ALLEXCEPT ( 'Table', 'Table'[name] ) )

You can choose the effect that suits you according to your preferences.

The sample effect is as follows:

Sample data:

v-angzheng-msft_0-1618540471005.jpeg

Result:

v-angzheng-msft_1-1618540471007.jpeg

 

v-angzheng-msft_2-1618540471011.jpeg

Is this the result you want? Hope this is useful to you

Please feel free to let me know If you have further questions

 

 

Best Regards,
Community Support Team _ Zeon Zheng
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

2 REPLIES 2
v-angzheng-msft
Community Support
Community Support

Hi, @jay_patel 

 

I'm not sure you need to get the desired results in table or card visual, so I've provided some of the results you might expect.

Create a measure to use on the card:

max = MAX('Table'[totalmins])

Or you want to get the desired result on the table:

max for name =
CALCULATE ( MAX ( 'Table'[totalmins] ), ALLEXCEPT ( 'Table', 'Table'[name] ) )

You can choose the effect that suits you according to your preferences.

The sample effect is as follows:

Sample data:

v-angzheng-msft_0-1618540471005.jpeg

Result:

v-angzheng-msft_1-1618540471007.jpeg

 

v-angzheng-msft_2-1618540471011.jpeg

Is this the result you want? Hope this is useful to you

Please feel free to let me know If you have further questions

 

 

Best Regards,
Community Support Team _ Zeon Zheng
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Jihwan_Kim
Super User
Super User

Hi, @jay_patel 

I am not sure if I understood your question correctly, but please check the sample pbix file's link down below.

 

I think you can write the below measure.

Or, if I missed something, please let me know.

 

Result = MAX('Table'[totalmins])
 
Picture3.png
 
 

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: https://www.linkedin.com/in/jihwankim1975/

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.


Go to My LinkedIn Page


Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.