Forum Discussion
Additional Bar graph when selected
- 6 years ago
Hi,
you can try to use a stacked column visual and customize the data colors for each category.
If you create a stacked column with categories in the legend and a Filter by Category you will hace something similar to:
Then you can customize Data Colors in the Format Menu (first categories in green and categories 7 & 8 in red):
Finally you will have this visual:
If you filter first categories, the columns appear in green color, but if you include 7 & 8 they will appear in red.
Other way is to create value groups in the Category field in order to assign each group a color:
https://docs.microsoft.com/en-us/power-bi/desktop-grouping-and-binning
Please, chek this answer as Solution if it solve your issue.
- 6 years ago
Check the link : https://docs.microsoft.com/en-us/power-bi/desktop-grouping-and-binning
You can create a group for categories 7 & 8 and it works like a grouped value. Let's say you create a group for categories from 1 to 6 and call it "Green Categories" and another group for categories 7&8 called "Red Categories". Then you can add a slicer by Category Groups.
- 6 years ago
Perfect! Thank you so much for your advice.
Hi,
you can try to use a stacked column visual and customize the data colors for each category.
If you create a stacked column with categories in the legend and a Filter by Category you will hace something similar to:
Then you can customize Data Colors in the Format Menu (first categories in green and categories 7 & 8 in red):
Finally you will have this visual:
If you filter first categories, the columns appear in green color, but if you include 7 & 8 they will appear in red.
Other way is to create value groups in the Category field in order to assign each group a color:
https://docs.microsoft.com/en-us/power-bi/desktop-grouping-and-binning
Please, chek this answer as Solution if it solve your issue.
Ok that may just work thank you, but what happens if I wanted to put a slicer in for the user to be able to say if they want to see Category 7/8?
- Vandalytic6 years agoAdvocate II
Check the link : https://docs.microsoft.com/en-us/power-bi/desktop-grouping-and-binning
You can create a group for categories 7 & 8 and it works like a grouped value. Let's say you create a group for categories from 1 to 6 and call it "Green Categories" and another group for categories 7&8 called "Red Categories". Then you can add a slicer by Category Groups.
- UK_User1234566 years agoResolver I
Perfect! Thank you so much for your advice.