Forum Discussion

NBDOC's avatar
NBDOC
Frequent Visitor
2 years ago
Solved

CONDITIONAL FORMATTING WITH FIELD PARAMATERS IN MATRIX

I realize there no way to do conditioanl formatting on field parameters without DAX. Here is one of multiple measurs I have on a field paramater in Matrix table. Please help me add a simple color mea...
  • danextian's avatar
    danextian
    2 years ago

    Hi NBDOC ,

    If field parameters don't work for you, I would go old school. So basically, you create a table that has  the name of your measures and use a conditional formula to return the value of a measure depending on what of the value of the measure column from another table. In the image below, Measure in Columns  tile is from a column from __MEASURES table which doesn't have relationship Table. What binds them is Actual Budget Diff measure.

    Actual Budget Diff = 
    SWITCH (
        SELECTEDVALUE ( __MEASURES[Measure] ),
        "ACT", [ACT],
        "BUD", [BUD],
        "DIFF", [DIFF]
    )

    It is rather finnicky but should work in most cases. Please see attached pbix for details.