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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Anonymous
Not applicable

measure: how many times are a row from dimension used in fact

Hi I'm sure this will be quite simple for many of you, but now I'm been trying out for hours.

 

cantona7_0-1615476899260.png

 

How can you in dax create the measure NumberOftimesUsedInFact?

The reasoning is the following: DimColA=A from dimensionA belongs to both key 1 and 2. Key 1 and 2 are used 4 times in the fact hense the NumberOfTimesUsedInFact=4. 

I would really like if a row from the dimension is not used in fact then the measure solves to 0 and not just doen'nt show. 

Thanks in advance

2 REPLIES 2
amitchandak
Super User
Super User

@Anonymous , if dimension and fact are joined

 

countrows(Table) +0 with dimension should give all the rows with 0 for in used

 

if(isblank(countrows(Table) ),1,blank()) will give you only unused with a member of dimension

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
Anonymous
Not applicable

thanks for you help, and hope you have 5 more minutes 🙂 and this will be my last question...

I would like to show which rows from dim A thats not used ... I have tried with summarize but no luck yet

I hope it makes sense 

 

 

cantona7_0-1615545210596.png

 

Helpful resources

Announcements
November Fabric Update Carousel

Fabric Monthly Update - November 2025

Check out the November 2025 Fabric 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.

Users online (27)