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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

I need to Summ sales Qty from a different table for 3 months based on the purcheas month

I have one table with Buying data and I want to get the sales Qty based on the buying month.

 

So there is a table where the rows have Bought Qty (several rows per month on a product) and another table with Sales Qty.

 

Im trying to find a calculate way where if I bought that product on September, it will add up all the sales qty for September, October, November.

 

There is one complication... as my Power BI is not recognizing dates.... so I have to do the filters on String level.

 

This would be a really easy fix in excel with sumifs. but it seems way to complex of a formula in power bi.

 

So far I tried the following but it comes up empty:

 

test = Calculate(Sum('Sales Qty for ST'[Sales Qty]);Filter('Sales Qty for ST';'Sales Qty for ST'[Month Name]="September");Filter('Sales Qty for ST';'Sales Qty for ST'[Month Name]="October");Filter('Sales Qty for ST';'Sales Qty for ST'[Month Name]="November"))
 
If id get this to work... I would add a IF condition for each month. It would look huge... but as I cannot make this first thing to work im back to the start.
 
Thanks for anyone with some insight.
1 REPLY 1
Greg_Deckler
Community Champion
Community Champion

Please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

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