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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
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.