Forum Discussion
substract with decimal
- 5 years ago
You can use a simpler approach. Your Measure3 can directly compute the desired RGB color, and then your conditional formatting can use the value of Measure3 directly as well (rather than rules)
- 5 years ago
Hi, IF
According to your description and picture, I guess that you want to get the difference of the round value of the two measures and set conditional format based on their difference, you can try my steps:
- I suggest you to use DAX to get the round value of the two measures, you can create these measures:
Rounded Measure1 = ROUND([Measure1],2)Rounded Measure2 = ROUND([Measure2],2)Measure3 = [Rounded Measure1]-[Rounded Measure2]Color = SWITCH( TRUE(), [Measure3]=0,"Green", [Measure3]<0,"Red", [Measure3]>0,"Black")- Then create a table chart and place columns and open the conditional format, like this:
- Then set the conditional format like this:
And you can get what you want.
You can download my test pbix file here
If this result is not what you want, you can post some sample data(without sensitive data) and your expected result.
How to Get Your Question Answered Quickly
Best Regards,
Community Support Team _Robert Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- 5 years ago
Yes, I thought of using a card to change the color accordingly. Thanks a lot! Happy holidays!
Hi, IF
According to your description and picture, I guess that you want to get the difference of the round value of the two measures and set conditional format based on their difference, you can try my steps:
- I suggest you to use DAX to get the round value of the two measures, you can create these measures:
Rounded Measure1 = ROUND([Measure1],2)Rounded Measure2 = ROUND([Measure2],2)Measure3 = [Rounded Measure1]-[Rounded Measure2]Color =
SWITCH(
TRUE(),
[Measure3]=0,"Green",
[Measure3]<0,"Red",
[Measure3]>0,"Black")
- Then create a table chart and place columns and open the conditional format, like this:
- Then set the conditional format like this:
And you can get what you want.
You can download my test pbix file here
If this result is not what you want, you can post some sample data(without sensitive data) and your expected result.
How to Get Your Question Answered Quickly
Best Regards,
Community Support Team _Robert Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.