Forum Discussion

NicolPuglia's avatar
NicolPuglia
Frequent Visitor
6 years ago
Solved

Table formatting conditions

Hi,   I have a table widget and I would like the first 100 values to be colored according to the filter put.   With formatting conditions I can't.   Can you help me?   Thank you very much ind...
  • v-zhenbw-msft's avatar
    6 years ago

    Hi NicolPuglia ,

    We can use the following steps to meet your requirement.

     

    1. Create a measure to calculate the value of rows.

     

    Measure = 
    var x = MAX('Table'[date])
    return
    CALCULATE(DISTINCTCOUNT('Table'[date]),FILTER(ALLSELECTED('Table'),'Table'[date]<=x))

     

    2. Then we can configure the Total measure’s conditional formatting using [Measure].

     

     

     

     

    If it doesn’t meet your requirement, could you please show the exact expected result based on the table that we have shared?

    BTW, pbix as attached.

     

    Best regards,

     

    Community Support Team _ zhenbw

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