Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
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 like to be able to highlight that specific column (with a red background, for example). I understand the workaround trick of = IF ( 'Table' [Column 1] ) = "yes", 1, 0) and then conditionally formatting that specific column by 1 = color and 0 = color. However, when working with 200+ columns I was wondering if there was an easier way.
Thanks!
Solved! Go to Solution.
Hey @water-guy-5, 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
Hey @water-guy-5, 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
Thank you so so so so much!
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
121 | |
76 | |
46 | |
44 | |
34 |
User | Count |
---|---|
180 | |
85 | |
68 | |
47 | |
46 |