Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

How to format multiple text columns

Hello,  Is it possible to conditionally format multiple text columns with one measure? To explain, I have an "inspection" form with over 200 rows of "yes/no" questions. If there is a no, I would l...
  • mattww's avatar
    4 years ago

    Hey Anonymous, when I usually have a lot of conditional stuff, I would unpivot the columns, join on a lookup table (i.e. to get your colours) and then if neccesary pivot that back into columns, using your (unaggragted) colour value as the cell value. Some steps below

    Select RowID and InspectionDate then unpivot other columns. Merge your lookup table on the new Value column to get the colours for Y and N

     

     

    If needed, you could then pivot it back to columns. Although I usually find the long, slim unpivoted table easier to work with