Forum Discussion
Color coding Columns based on a field
Hello, I need to color code columns[QTD,YTD,Base Revenue& Total] for product as END POINTs and SAAS (same columns but deferentiated based on product).
Below is what I am expecting.
Need guidance in achiving this in the matrix of PBI visual.
Thanks
AP
- Anonymous2 years ago
Hi Anonymous ,
You can apply the following formula to conditional formatting, see below:
M_ = SWITCH ( SELECTEDVALUE ( 'Table'[Product] ), "END POINTS", "Yellow", "SAAS", "green" )Best Regards,
Adamk KongIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
3 Replies
- Joe_BarrySolution Sage
Hi Anonymous
Highlight the visual and go to the Formatting section. Look for Columns, here you will find a number of different formmating options and one of them is background.
You can change the colur of individual columns here. Just change the one you wnat to the colur you want.
Joe
If you found my answer helpful and it solved your issue, please accept as solution
- AnonymousNot applicable
Hi Anonymous ,
You can apply the following formula to conditional formatting, see below:
M_ = SWITCH ( SELECTEDVALUE ( 'Table'[Product] ), "END POINTS", "Yellow", "SAAS", "green" )Best Regards,
Adamk KongIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- johnbasha33Super User
Anonymous
ProductCategory =
SWITCH(TRUE(),
'YourTableName'[Product] = "END POINTs", "END POINTs",
'YourTableName'[Product] = "SAAS", "SAAS",
BLANK()
)