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

View all the Fabric Data Days sessions on demand. View schedule

Reply
Anonymous
Not applicable

Group columns from a different tables, filter it and have SUM of values in the end

Hello.

I need some help with creating a table visual with next columns and measures:

1. Corporate Account (Store Table) - Column

2. Management Company (Store Table) - Column

3. Brand Variety (Product Table) - Column

4. Date (Date or Fact Table) - Column

5. # of Stores - Measure

6. # of Stores "In Compliance" - Measure

7. # of Stores "Out of Compliance" - Measure

 

The idea is:
For each Management Company there should be specific Brand Variety values that has a Volume 9L.
For instance, for the Management Company (Aimbridge - AC Hotels) 3 Brand Variety (ON THE ROCKS EFFEN COSMO, ON THE ROCKS KNC OLD FASHION and a choice of ON THE ROCKS HORN MARG or ON THE ROCKS LARIOS AVIATION) should have any volume (Volume 9L > 0) and then call it "In Compliance", otherwise "Out of Compliance". The last part of it calculate how many Stores for a specific Management Company are in Total, "In Compliance" and "Out of Compliance" for a specific time period.

 

Below attached screenshot with a data look.

Thank you for any help!

 

Capture.JPG

 

 

1 REPLY 1
amitchandak
Super User
Super User

@Anonymous , Consider measures

 

Compliance Type= if(Sum(Fact[VOlumn 9L](>0, "In Compliance", "Out of Compliance")

 

Count of Compliance =
Countx(FIlter(Summarize(Fact, Store[Corporate Account], Store[Management Company],Product[Brand Variety], Date[date],"_1",Sum(Fact[VOlumn 9L])), [_1]>0),[Corporate Account])

 

if you need a slicer, consider

 

Dynamic Segmentation Bucketing Binning
https://community.powerbi.com/t5/Quick-Measures-Gallery/Dynamic-Segmentation-Bucketing-Binning/m-p/1387187#M626


Dynamic Segmentation, Bucketing or Binning: https://youtu.be/CuczXPj0N-k

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

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
Top Kudoed Authors