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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

DAX to show sum based on another table filter by another table

VDC.PNG

I want to calculate sum of Plan based on Well Purpose & Year.

Note that Year(table1), Well Purpose(table2) and Plan(table3) are from different tables. 

I created a measure where Plan = SUM(table3[count_plan]) but it only shows total of plan based on year. It does not filter Well Purpose.

By the way, I want to put this measure in table2. Please help me.

2 REPLIES 2
v-jingzhang
Community Support
Community Support

@Anonymous Did you create a relationship between table2 and table3? If you did, what is the filter direction between them? The measure should work if a correct active relationship has been created. 

Reference: Create and manage relationships in Power BI Desktop - Power BI | Microsoft Docs

 

 

amitchandak
Super User
Super User

@Anonymous , Can you share sample data and sample output in table format?

Ideally should have common tables for year and well purpose to filter the tables

 

https://www.sqlbi.com/articles/the-importance-of-star-schemas-in-power-bi/

 

You can create a common table like -https://youtu.be/Bkf35Roman8

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.