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
DebbieE
Community Champion
Community Champion

Creating Measures over flags in Junk Dimension (Design Question)

My data consists of flags rather than metrics and instead of adding them into the fact table I have added them into a junk dimension as per modelling guidance. 

 

I have a fact tables that are going to use a junk dimension. 

 

FactAndJunk.png

And I create measures e.g.

Measure 1 = COUNTAX(FILTER('Dim Metrics junk', 'Dim Metrics junk'[AtRiskFlag]=TRUE()),TRUE())
So I can count the number of true Flags
 
But because there is nothing in the central fact table it just counts everything in the dim. I dont have anything to bring through from the central fact table to make sure we only see the count against the fact table. 
 
I know the guidance is to have flags in a junk dimension but this would work if they were in the fact table. Does anyone know any work arounds on this?
 
Im absolutely completely stumped on this one to the point where Im now thinking Power BI cant work with flags in a junk Dimension
1 REPLY 1
DebbieE
Community Champion
Community Champion

I think I have it

 

on track = CALCULATE(COUNT('Fact '[JunkKey]),'Dim Junk'[OntrackFlag]=TRUE()|| 'Dim Junk'[Reporting Group Description] = "Metrics")
 

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