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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

How to count/calculate orders in fact that includes information from 2 different dimensions

Hi all.

Hope you can help.

 

cantona7_1-1611828545565.png

 

cantona7_1-1611828757227.png

 

 

 

 

2 REPLIES 2
amitchandak
Super User
Super User

@Anonymous , Try these two measure for ask 1 ,2

calculate(distinctcount(dim_b[Product]), filter(Fact , fact[keyB] >= related(dima[ProductIdRangefrom]) && fact[keyB] <= related(dima[ProductIdRangeto])))

 

calculate(distinctcount(dim_b[Product]), filter(Fact , not(fact[keyB] >= related(dima[ProductIdRangefrom]) && fact[keyB] <= related(dima[ProductIdRangeto]))))

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

hi @amitchandak  many thanks for your time. I have though the following concerns:

cantona7_1-1611839010651.png

 

 

cantona7_0-1611838989834.png

thanks

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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