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!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
I have a column for Channel and its viewership across different regions in Table 1. This is a weekly data.
In Table 2, I have Channel and its preferred region (one per channel).
I want to create a measure to show a graph which has channels and the sum of viewership for the preferred region.
Can't find any solution. Need help.
Solved! Go to Solution.
HI @Anonymous
Assume that you have create a relationship between two tables by Channel field, then just use this formula to create a measure:
Measure = CALCULATE(SUM('Table 1'[Viewership]),FILTER('Table 1','Table 1'[Region] =RELATED('Table 2'[Preferred region])))
or
Measure 2 = CALCULATE(SUM('Table 1'[Viewership]),FILTER('Table 1','Table 1'[Region] =MAX('Table 2'[Preferred region])))
here is sample pbix file, please try it.
Regards,
Lin
@Anonymous ,
If you join, slicer should help
Else refer
https://docs.microsoft.com/en-us/dax/treatas-function
OR Can you share sample data and sample output.
Hi Amit,
Thanks for the response. I was actually looking to create a measure instead of a table.
The data looks something like this;
Table 2
Table 1
HI @Anonymous
Assume that you have create a relationship between two tables by Channel field, then just use this formula to create a measure:
Measure = CALCULATE(SUM('Table 1'[Viewership]),FILTER('Table 1','Table 1'[Region] =RELATED('Table 2'[Preferred region])))
or
Measure 2 = CALCULATE(SUM('Table 1'[Viewership]),FILTER('Table 1','Table 1'[Region] =MAX('Table 2'[Preferred region])))
here is sample pbix file, please try it.
Regards,
Lin
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.