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.
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
A | 1 | 1 | 10 |
A | 2 | 1 | 20 |
A | 3 | 1 | 30 |
Geo Table: (Dimension)
GeoId GeoName
1 | US |
2 | UK |
3 | Brazil |
Subsidary Table:
SubId SubName
1 | US |
Output
SubName Sales BYSub Sales In-house
US | 60 | 10 |
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
@abhiram342 , Try a measure like
Sales BYSub =
calculate(sumx( values(fact[SubsidaryID]), calculate(sum(fact[Sales]))), filter(Fact, fact[SubsidaryID] = max(Subsidary[SubID])))
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
49 | |
26 | |
21 | |
16 | |
12 |
User | Count |
---|---|
57 | |
49 | |
44 | |
19 | |
18 |