Jugorse's avatar
Jugorse
New Member
1 year ago
Status:
New

Card (New) Visual stopped Conditional Formatting

Today when I go to look at a Card (New) Visual that I've had working for months with colour conditional formatting, both PBI desktop and online show there being no fx applied. If I go to apply fx, it now results in all cards being white and doesn't function.

 

I sent my PBIX file to a colleague with an older version of PBI Desktop and when he opens the reports it has fx applied, but when published the fx is gone and appears as mine does.

1 Comment

  • Confirmed. I have this measure to define the color for the callout value. When I add the output to a card with a category it produces the expected values for each of the 3 categories, however, when I use this measure as a formula to apply conditional formatting to the callout value, only the color defined in the ELSE case of the Switch is applied for every category.

     

    HEX Color for Cards = 
    
    var _al = SELECTEDVALUE('dataset'[col])
    
    RETURN 
    Switch (
    	true()
    	,CONTAINSSTRING(_al, "ValA"), "#6F0790"
        ,CONTAINSSTRING(_al, "ValB"), "#E27144"
        ,CONTAINSSTRING(_al, "ValC"), "#7386FF"
        ,"#676767"
    )

Recent ideas