Forum Discussion
Conditional Formatting in Table
- 4 years ago
Hi,
According to your description, I can roughly understand your requirement, you want to apply the color gradient on the conditional formatting for each region within your dataset, right? I think you can try this method:
First, create a calculated column in the table like this:
Rank = RANKX(FILTER(ALL('Table'),[Region]=EARLIER('Table'[Region])),[% From World Average],,ASC,Dense)Then you can create a measure like this:
Color = SWITCH( MAX('Table'[Rank]), 1,"White", 2,"Light Blue", 3,"Blue")Then go to the conditional formatting setting of this chart and set it like this:
And you can get what you want, like this:
You can download my test pbix file below
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
Thank you very much!
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.
Hi,
According to your description, I can roughly understand your requirement, you want to apply the color gradient on the conditional formatting for each region within your dataset, right? I think you can try this method:
First, create a calculated column in the table like this:
Rank = RANKX(FILTER(ALL('Table'),[Region]=EARLIER('Table'[Region])),[% From World Average],,ASC,Dense)
Then you can create a measure like this:
Color =
SWITCH(
MAX('Table'[Rank]),
1,"White",
2,"Light Blue",
3,"Blue")
Then go to the conditional formatting setting of this chart and set it like this:
And you can get what you want, like this:
You can download my test pbix file below
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
Thank you very much!
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.
Thank you, I am just looking into transposing this onto my datafile
- v-robertq-msft4 years agoCommunity Support
Hi, tomshaw83
Has my reply helped you to find the solution to this problem? If so, would you like to mark my reply as the solution?
If this result is not what you want, you can post the download link of your data file and your expected result.
How to Get Your Question Answered Quickly
Thank you very much!
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.