Starting December 3, join live sessions with database experts and the Microsoft product team to learn just how easy it is to get started
Learn moreShape the future of the Fabric Community! Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions. Take survey.
Hello,
I need help with conditionnal formating on a matrice. I have a matrice with 4 lines (duration) and 4 columns (years), I need to do a different conditionnal formating for each line of the matrice. For example : for the first line all figures above 3 are red, for the second line all figures above 3 are green ...
Is it possible ?
Thank you for your help !
Solved! Go to Solution.
Hi @Anonymous ,
First we create a measure to define the color, then using this measure to formatting condition as field value, you can change the DAX to meet your requirement, the outter SWITCH() control the line condition and the inner control different color format in line.
Color = SWITCH ( SELECTEDVALUE ( 'Table'[Duration] ), "Autumn", SWITCH ( TRUE (), SUM ( 'Table'[Value] ) >= 3, "#FF0000", SUM ( 'Table'[Value] ) < 3, "0000FF" ), "Spring", SWITCH ( TRUE (), SUM ( 'Table'[Value] ) >= 3, "#00FF00", SUM ( 'Table'[Value] ) < 3, "0000FF" ) )
BTW, pbix as attached.
Community Support Team _ DongLi
If this post helps, then please consider Accept it as the solution to help the other members find it more
Hi @Anonymous ,
First we create a measure to define the color, then using this measure to formatting condition as field value, you can change the DAX to meet your requirement, the outter SWITCH() control the line condition and the inner control different color format in line.
Color = SWITCH ( SELECTEDVALUE ( 'Table'[Duration] ), "Autumn", SWITCH ( TRUE (), SUM ( 'Table'[Value] ) >= 3, "#FF0000", SUM ( 'Table'[Value] ) < 3, "0000FF" ), "Spring", SWITCH ( TRUE (), SUM ( 'Table'[Value] ) >= 3, "#00FF00", SUM ( 'Table'[Value] ) < 3, "0000FF" ) )
BTW, pbix as attached.
Community Support Team _ DongLi
If this post helps, then please consider Accept it as the solution to help the other members find it more
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Check out the November 2024 Power BI update to learn about new features.
User | Count |
---|---|
94 | |
90 | |
83 | |
76 | |
49 |
User | Count |
---|---|
145 | |
140 | |
109 | |
68 | |
55 |