Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!
I have three tables as shown below. All three are unrelated and i dont want to move region name to country table.
I am looking for a calculated table as shown in output.
Is this possible? Any help on this is much appreciated. thanks in advance.
Solved! Go to Solution.
Hi @Anonymous ,
Please try code as below to create a measure.
SUMX =
VAR _Summarize =
SUMMARIZE (
DimRegion,
DimRegion[Region Name],
"Amount",
VAR _Country =
CALCULATETABLE (
VALUES ( DimCountry[Country] ),
FILTER ( DimCountry, DimCountry[Region] = MAX ( DimRegion[Region] ) )
)
RETURN
CALCULATE (
SUM ( Country[Amount] ),
FILTER ( Country, Country[Country] IN _Country )
)
)
RETURN
SUMX ( _Summarize, [Amount] )
Data model:
Result is as below.
Best Regards,
Rico Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous ,
Please try code as below to create a measure.
SUMX =
VAR _Summarize =
SUMMARIZE (
DimRegion,
DimRegion[Region Name],
"Amount",
VAR _Country =
CALCULATETABLE (
VALUES ( DimCountry[Country] ),
FILTER ( DimCountry, DimCountry[Region] = MAX ( DimRegion[Region] ) )
)
RETURN
CALCULATE (
SUM ( Country[Amount] ),
FILTER ( Country, Country[Country] IN _Country )
)
)
RETURN
SUMX ( _Summarize, [Amount] )
Data model:
Result is as below.
Best Regards,
Rico Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@Anonymous Thank you very much for your solution. it works without any error.
The Power BI Data Visualization World Championships is back! It's time to submit your entry.
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 61 | |
| 48 | |
| 35 | |
| 25 | |
| 23 |
| User | Count |
|---|---|
| 132 | |
| 105 | |
| 59 | |
| 39 | |
| 31 |