Skip to main content
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Helper I
Helper I

Single 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 everything that contains "linux", contains "windows", and doesn't contains windows nor linux:



How can i achieve this? I've been trying quick measures for hours without success.


Resolver I
Resolver I

Hi @mcflurry ,


Please try the below dax to create a column


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

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?

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

Helpful resources

Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City


Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.