Forum Discussion

ThisIsIt's avatar
ThisIsIt
Frequent Visitor
3 years ago
Solved

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.

 

Thank you!

 

 

  • ThisIsIt , a new measure like

     

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

     

    or

    calculate(

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

3 Replies

  • ThisIsIt , a new measure like

     

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

     

    or

    calculate(

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

    • ThisIsIt's avatar
      ThisIsIt
      Frequent Visitor

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

  • 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:

    (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:

    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