Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and a 50 percent discount on exams.
Get startedEarn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
I have the following tables and columns to use for this
And I want to conditionally colour the Table Field based on the Fact and the Lookup %
So for example
Group Fact Lookup %
Group1 79.1% 85%
If Fact The Same or Greater than Lookup % Then Green
If Fact 10% Under Lookup % Then Amber
If Fact Greater that 10% Under Lookup % Then Red
But I don’t think I can do it . All I have is the following
Is there any way of setting up formatting against another data item in the way specified above?
Solved! Go to Solution.
@DebbieE it is pretty easy, actually you can create a measure to define the logic for the color and then use that in conditional formatting by selecting field value from drop down
something like, so you can put your logic in following measure and use this My Background Color for conditional formatting.
My Background color = SWITCH( TRUE() Measure A > Measure B, "Green", Measure A = Measure B, "Yellow", "Red" )
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
I need to use a between I think and I dont think you can use BETWEEN in a Switch.
I think I may have some working DAX
@DebbieE you have percent option select in first set of condition, change it to number.
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
That was just something I did quickly to show that I cant format against another field in a table.
@DebbieE it is pretty easy, actually you can create a measure to define the logic for the color and then use that in conditional formatting by selecting field value from drop down
something like, so you can put your logic in following measure and use this My Background Color for conditional formatting.
My Background color = SWITCH( TRUE() Measure A > Measure B, "Green", Measure A = Measure B, "Yellow", "Red" )
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
I started to try and create that measure (Its definitely a measure)
But it doesnt allow me to select my Average Measure that is already set up as a measure
@DebbieE hmmm, very hard to say why, if you adding this as a measure and you already have anotehr measure, you should able to refer existing measure. no idea how to debug without actually looking at it.
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
I need to use a between I think and I dont think you can use BETWEEN in a Switch.
I think I may have some working DAX
@DebbieE IF condition is also fine but I like to use Switch it is easy to maintain and readbility point of view. Yes between can be used using and , anyhow let's if you get thru IF and then you have the solution.
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
Its all working,
Thank you so much
User | Count |
---|---|
87 | |
72 | |
68 | |
63 | |
54 |
User | Count |
---|---|
98 | |
89 | |
74 | |
67 | |
62 |