Forum Discussion
mcflurry
Helper I
5 years agoSingle stacked bar from column filtering content
Hello everyone, I'm starting to use this and would like to create a stacked bar but am completely lost. I have this column: And I would like to create a single stacked bar that count ever...
PoojaDarbhe
Resolver I
5 years agoHi mcflurry ,
Please try the below dax to create a column
testCol = IF(CONTAINSSTRING(Test[OS], "LINUX"), "LINUX", IF(CONTAINSSTRING(Test[OS], "WINDOWS"), "WINDOWS", "Other"))
Now pull this column in legend field of stacked bar chart and on values pull the same field having count of the same.
This will give you the expected result.
Let me know in case you need more clarification.
Best regards,
Pooja Darbhe
- mcflurry5 years ago
Helper I
Great, it works.
A few more adjustments.
Can I change order of values in bar?
And can i ignore some values containing some string in any of the 3 filtered strings?
- PoojaDarbhe5 years ago
Resolver I
Very happy to hear that mcflurry.
You can filter the values in filter pane, it will work as expected.
And from sort you can sort the values.
Let me know in case you need more information.
It will be Great if you accept the Solution. Thanks alot.
Best regards,
Pooja Darbhe