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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
kaktusit0
New Member

DAX summarize measures from two tables even when there is no match in one of them

I'm new with DAX and I need some help with a measure.

 

I want to group data by month, product, group and store, and summarize quantity and goals.

These are a sample of my tables:

Stores table

Storegroup
1XX
2XX
3YY

Targets table

MonthStoreProductGoal
feb 211A5
feb 211B7
feb 212A8
feb 212B7
feb 213A6
feb 213B10

Sales table

DateStoreProductQuantity
feb 1, 211A2
feb 2, 211A5
feb 5, 211B3
feb 5, 212A1

 

I need something like this, filtered by month.

Sum all goals even if there are no sales for some stores yet.

Feb 21

ProductGroupStoretotal Quantitytotal Goal
A 6819
 XX3813
  175
  218
 YY3 6
  3 6

 

I don't have problems if there are some sales for the store, but when a store doesn't have any rows in the sales table, the total goal colum isn't correct.

This is the result I have, the total goal of product A in feb 21 (13) is wrong.

Feb 21

ProductGroupStoretotal Quantitytotal Goal
A 6813
 XX3813
  175
  218
 YY3 __
  3 __

 

Can anyone help me with this issue?

Thanks

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@kaktusit0 , Create a common table of product and join with both tables and then you should be able to analyze

 

Common tbale

https://www.youtube.com/watch?v=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

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@kaktusit0 , Create a common table of product and join with both tables and then you should be able to analyze

 

Common tbale

https://www.youtube.com/watch?v=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

Thanks a lot @amitchandak for your answer.

It was a really simple solution ๐Ÿ˜Š

Helpful resources

Announcements
November Fabric Update Carousel

Fabric Monthly Update - November 2025

Check out the November 2025 Fabric update to learn about new features.

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!

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.

Users online (25)