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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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