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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

stacked bar chart with related tables

Hello Community,

 

I have been trying to create a Bar Chart where i can can Categorize by the Column Material Group. I have to Tables in relation, in the first one Requirements i'm counting the Product Area entrys but those values also have a subcategory in the the table called RequirementsMaterialGroup with the Column Material Group and i need to count by those values which can be multiple (S,P,M,K). Here a visualization:

PRP.png

How should the measure look like to accomplish this?  Or any oter solution.

 

 

Edit: I have been trying with this measure which i thought it should work but it doesn't show anything...

 

Count = CALCULATE(COUNTROWS(RequirementsMaterialGroup);FILTER(RequirementsMaterialGroup;RequirementsMaterialGroup[Material Group]="P");FILTER(RequirementsMaterialGroup;RequirementsMaterialGroup[Material Group]="M");FILTER(RequirementsMaterialGroup;RequirementsMaterialGroup[Material Group]="K");FILTER(RequirementsMaterialGroup;RequirementsMaterialGroup[Material Group]="N");FILTER(RequirementsMaterialGroup;RequirementsMaterialGroup[Material Group]="S");FILTER(RequirementsMaterialGroup;RequirementsMaterialGroup[Material Group]="H");FILTER(RequirementsMaterialGroup;RequirementsMaterialGroup[Material Group]="O"))

PRP2.png

 

 

Best regards

domates

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hello @v-chuncz-msft,

i tried this at the very beginning and it's not working.

 

Best regards and a happy Christmas

 

Edit: **bleep**, i forgot a letter in the ID and didn't notice that's why it didn't work. Sorry for wasting your time. Smiley Frustrated

View solution in original post

2 REPLIES 2
v-chuncz-msft
Community Support
Community Support

@Anonymous,

 

It seems that you just need to drag [Material Group] to Legend.

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Hello @v-chuncz-msft,

i tried this at the very beginning and it's not working.

 

Best regards and a happy Christmas

 

Edit: **bleep**, i forgot a letter in the ID and didn't notice that's why it didn't work. Sorry for wasting your time. Smiley Frustrated

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors