Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Dears
Started as a new developer with Power BI. i need to format the matrix based on row and column headers like below :
either the cell background with color or the font with colored when the row and column header are same .
please help me with this formating .
| previous | 10 | 20 | 30 | 40 | 50 | 60 |
| 10 | 100 | |||||
| 20 | 150 | |||||
| 30 | 200 | |||||
| 40 | 250 | |||||
| 50 | 300 | |||||
| 60 | 350 |
Solved! Go to Solution.
Hi @tj41901,
You can set conditional formatting to apply the highlight color if the current row and column have the same values.
Measure =
VAR currRow =
SELECTEDVALUE ( Table[Row] )
VAR currColumn =
SELECTEDVALUE ( Table[Column] )
RETURN
IF ( currRow = currColumn, "Red", "Black" )
Conditional table formatting in Power BI Desktop - Power BI | Microsoft Docs
Power BI Conditional Formatting for Matrix and Table Visuals (mssqltips.com)
Regards,
Xiaoxin Sheng
Thanks alot v-shex-msft
i have used this suggestion and its working .
Hi @tj41901,
You can set conditional formatting to apply the highlight color if the current row and column have the same values.
Measure =
VAR currRow =
SELECTEDVALUE ( Table[Row] )
VAR currColumn =
SELECTEDVALUE ( Table[Column] )
RETURN
IF ( currRow = currColumn, "Red", "Black" )
Conditional table formatting in Power BI Desktop - Power BI | Microsoft Docs
Power BI Conditional Formatting for Matrix and Table Visuals (mssqltips.com)
Regards,
Xiaoxin Sheng
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 6 | |
| 3 | |
| 1 | |
| 1 | |
| 1 |