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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
abhiram342
Employee
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])))

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors