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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

SUM IF / Date Issue

Hi there,

 

I am having trouble with one of my measures. Esentially I am trying to sum the sales from 2 tables... Both have SKU and Quarter in the rows. When I am looking at Sales, I believe the measure is summing sales from every quarter in the e-comm table and not taking into account the quarter.

 

I currently have a many:many relationship linked to both tables along with the below measure. Any help is greatly appreciated.

 

Thanks!SharedScreenshot9.jpgSharedScreenshot10.jpg

1 ACCEPTED SOLUTION
Anonymous
Not applicable

@Anonymous 

Try create the following measure:

 

Measure = Sumx(All('LicenseBrand Data'),[Sales $]) + Sumx(All('E-Comm'),[Merch & TY])

 


Paul Zheng _ Community Support Team
If this post helps, please Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

@Anonymous 

Try create the following measure:

 

Measure = Sumx(All('LicenseBrand Data'),[Sales $]) + Sumx(All('E-Comm'),[Merch & TY])

 


Paul Zheng _ Community Support Team
If this post helps, please Accept it as the solution to help the other members find it more quickly.

lbendlin
Super User
Super User

Please explain your reasoning for applying that type of relationship.

 

Would you consider both tables to be Fact tables?  Are there Dimension elements in these tables?  Would it be better to apply some gentle normalization to arrive at a Star schema data model?

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 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.