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
abhiram342
Microsoft Employee
Microsoft Employee

DAX measure on tables with no relationships

Hi All,

 

Hope everyone doing good! I have below tables and looking for below DAX measures for tables with no relation ship. can you please help on the Code

 

Fact Table:

Customer Geo          SubsidaryID  Sales

A1110
A2120
A3130

 

Geo Table: (Dimension)

GeoId    GeoName

1US
2UK
3Brazil

Subsidary Table:

SubId     SubName

1US

 

 

Output

SubName     Sales BYSub  Sales In-house

US6010

Measure1: SalesBySubsidary: It's US in above Case: 10+20+30 =60

Measure2: Sales In house ( Geo(US) ==Subsidary(US) ) =10

Note: there is no relationship between Geo and Subsidary Table

 

I have issue with Region In-house, used treatas function but it's not giving correct result

 

Thanks,

Abhiram

1 REPLY 1
amitchandak
Super User
Super User

@abhiram342 , Try a measure like

Sales BYSub =
calculate(sumx( values(fact[SubsidaryID]), calculate(sum(fact[Sales]))), filter(Fact, fact[SubsidaryID] = max(Subsidary[SubID])))

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

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

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.