Forum Discussion

kabra_ashish's avatar
kabra_ashish
Helper III
5 years ago
Solved

Table Visual - Conditional Formatting

I have a table visual with the below fields:

 

Date             Trans_Id        Spend($)

Jan 1              ABC123            100

Jan 2              DEF123            100

Jan 3              GHI123            100

Jan 3              JKL123            100

Jan 4              XYZ123            100

 

Is there a way to highlight those records which appear the maximum times? So in this case Jan 2 appears twice and I would like to highlight both the Jan 2 records. I do not want the others to be highlighted as they appear only once.

  • Anonymous's avatar
    Anonymous
    5 years ago

    Hi kabra_ashish ,

     

    Create a measure

    Measure = 
    var _maximumcountall = MAXX(SUMMARIZE(ALL('Table'),'Table'[Date],"CC1",COUNT('Table'[Date])),[CC1])
    var _maxdate = MAX('Table'[Date])
    var _count = COUNTROWS(FILTER(ALL('Table'), 'Table'[Date] = _maxdate))
    RETURN
    if (_count = _maximumcountall, 1, 0)
    

     

     

    Regards,
    Harsh Nathani
    Did I answer your question? Mark my post as a solution! Appreciate with a Kudos!! (Click the Thumbs Up Button)

6 Replies

Replies have been turned off for this discussion