Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin 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.
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
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 75 | |
| 36 | |
| 31 | |
| 29 | |
| 26 |