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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
ThisIsIt
Frequent Visitor

Card from Matrix (highest value)

Hello Everyone!  Maybe you can can?  I'm trying to get create a card that shows the max value from a matrix I have (minus the totals).  I thinking I need to create a DAX to do this, but haven't been able to figure this out.  Below is an example of the matix that I'm trying to get the Card to show the highest value.

 

ThisIsIt_0-1672672419077.png

Thank you!

 

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@ThisIsIt , a new measure like

 

Maxx(Summarize(Table, Table[Product], Table[Country]), [Measure])

 

or

calculate(

Maxx(Summarize(Table, Table[Product], Table[Country]), [Measure]), allselected())

View solution in original post

3 REPLIES 3
v-yueyunzh-msft
Community Support
Community Support

Hi , @ThisIsIt 

According to your description, you want to get the highest data in your Matix Visual. 
Here are the steps you can refer to :
(1)This is my test data:

vyueyunzhmsft_0-1672711050106.png

(2)We can create a measure like this , you just need to replace the table name and column name and the measure name in your side :

Measure = var _t  = SUMMARIZE( ALLSELECTED('Table') , 'Table'[Country], 'Table'[Product] , "Value" , [Value SUm])
return
MAXX(_t ,[Value])

(3)Then we can meet your need:

vyueyunzhmsft_1-1672711099948.png

Thank you for your time and sharing, and thank you for your support and understanding of PowerBI! 

 

Best Regards,

Aniya Zhang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

amitchandak
Super User
Super User

@ThisIsIt , a new measure like

 

Maxx(Summarize(Table, Table[Product], Table[Country]), [Measure])

 

or

calculate(

Maxx(Summarize(Table, Table[Product], Table[Country]), [Measure]), allselected())

Thank you very much!  The "Maxx(Summarize(Table, Table[Product], Table[Country]), [Measure])" solution worked for me.  Much appreciated!

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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