Forum Discussion

dapperscavenger's avatar
3 years ago
Solved

Switch colour formatting via user choice

I have a colour formatting switch like this:   LateColor = var col = SELECTEDVALUE(DimLate[Lateness Group]) RETURN SWITCH( TRUE(), col = "Early", "#2c7bb6", col = ...
  • djurecic's avatar
    3 years ago

    Hi dapperscavenger ,

     You can create a disconnected table with "Traditional" and "Inclusive" as rows. Use the field from that table in your slicer. Use SelectedValue to get the selected option. Then use If statement .

    Something like this:

     

    Measure= 

    var _SelectedColor= SELECTEDVALUE(DisconnectedTableName[FieldName])

    return

    If(_SelectedColor="Traditional", Do the red/green stuff here, Do the red/blue stuff here)