Forum Discussion
Matrix - conditional formatting single row
- 1 year ago
hi cn4422
How do you identify a single country column? What makes one a single country? Or do you mean only Deutschland is to be formatted? If so, create the measures that return the values just for that specific country and apply the conditional formatting to those measures. Example:
Anzahl - Deutschland = CALCULATE ( [Anzahl], KEEPFILTERS ( 'table'[Country] = "Deutschland" ) )
danextian Thx for your reply!
Exactly, I do have the country column 'lead'[Country] with all the countries in it.
The selection with the measure for country worked!
When I put "Rules" as format style it's fine. However, when I put "gradient" as format style, it's formatting all countries again...
Do you know why this would happen?
The measure returns blank for all other countries. So if you treat as zero then formatting will be applied to those blanks values if using gradient. Use dont format.
- cn44221 year agoHelper V
danextian wrote:The measure returns blank for all other countries. So if you treat as zero then formatting will be applied to those blanks values if using gradient. Use dont format.
danextian ah, that does the trick, thank you very much! 👍
Do you per chance also know if it is possible to format each column based based on itself?
So that the "gradient" does not inlcude the data of the whole matrix as reference, as on this screenshot:
.... but rather each column as its own entity.
- danextian1 year agoSuper User
You mean to format based on the max value of each column? You can rank row categories within that column. Example.
Rank per Geo = RANKX ( ALL ( Geo ), [Total Revenue],, DESC, DENSE )