Forum Discussion

natasha519's avatar
natasha519
Helper II
4 years ago
Solved

Conditional Format a Measure

I have a measure (Y1SS = if(COUNTROWS(FILTER(od2a_SuccessStory,od2a_SuccessStory[Year]="Year 1")),"Submitted", "Missing")), is there any way I can include in this DAX formula that if it's 'Submitted'...
  • Anonymous's avatar
    Anonymous
    4 years ago

    Hi natasha519 

    Add a color measure .

    Y1SS Color = if(COUNTROWS(FILTER(od2a_SuccessStory,od2a_SuccessStory[Year]="Year 1")),"#24FF10 ", "#FF470F")

    Then choose the measure [Y1SS] you created before , click the drop-down box and select Conditional formatting => Font color , then in Font color pane , select Field value in Format style , Values only in Apply to , the measure which you want to apply color in What field should we base this on .

    The final result is as shown :

    I have attached my pbix file , you can refer to it .

     

    Best Regard

    Community Support Team _ Ailsa Tao