Hello Power BI Community
I need you're help to format my matrix, so I have the value of total(B) that have the same value of the subtotal(B) and I need to format one of them to white so it'll not show me the same value twice.
I tried to create a measure to change the color based on a condition but It changes the colors of the two values total and subtotal (the two B)
Any one can give me an idea to work on this issue
Solved! Go to Solution.
Hi, @ikramelmbarki98 ;
You could create a column as new subcate.
Column = IF([Cate]=[Subcate],BLANK(),[Subcate])
Then create a measure.
Measure =
IF(ISINSCOPE('Table'[Ssub]),SUM('Table'[value]),
IF(ISINSCOPE('Table'[Column])&&MAX('Table'[Column])=BLANK(),BLANK(),SUM('Table'[value])))
The final show:
Best Regards,
Community Support Team _ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, @ikramelmbarki98 ;
You could create a column as new subcate.
Column = IF([Cate]=[Subcate],BLANK(),[Subcate])
Then create a measure.
Measure =
IF(ISINSCOPE('Table'[Ssub]),SUM('Table'[value]),
IF(ISINSCOPE('Table'[Column])&&MAX('Table'[Column])=BLANK(),BLANK(),SUM('Table'[value])))
The final show:
Best Regards,
Community Support Team _ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@ikramelmbarki98 , You can use isinscope or if needed the value and create a color measure and use that in conditional formatting using field value option
if(isinscope(Table[B]) , "Yellow", "White")
How to do conditional formatting by measure and apply it on pie?
https://www.youtube.com/watch?v=RqBb5eBf_I4&list=PLPaNVDMhUXGYo50Ajmr4SgSV9HIQLxc8L
https://community.powerbi.com/t5/Community-Blog/Power-BI-Conditional-formatting-the-Pie-Visual/ba-p/...
https://amitchandak.medium.com/power-bi-where-is-the-conditional-formatting-option-in-new-format-pan...
I tried it and it changes the color of the level 1 and 2 they consider it as a total
User | Count |
---|---|
211 | |
83 | |
82 | |
78 | |
46 |
User | Count |
---|---|
166 | |
84 | |
83 | |
80 | |
74 |