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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
TS_PowerBI
Frequent Visitor

Help: Sum by Slicer Dates, multiple date columns

Hi all,

 

Stuggling to find a way to sum a data table based on the dates selected in a slicer. 

The data source has 3 date columns and 3 count coulmns. The result expected is "If between these dates, + Sold - Promo - Returned)

 

I have an excel forumula but can't figure out how to moce this into Power BI. 

 

 

 

DATA       Slicer 
Product Sold DatePromo DateReturned DateSold (+)Promo (-)Returned (-) 3/1/20213/31/2021
Grapes3/3/2021##100   
Grapes3/1/2021##100 Result4
Grapes#3/1/2021#010   
Grapes3/16/2021##100 =SUM(
SUMIFS(E:E, B:B, ">="&I1, B:B, "<="&J1),
-SUMIFS(F:F, C:C, ">="&I1, C:C, "<="&J1)
-SUMIFS(G:G, D:D, ">="&I1, D:D, "<="&J1)
)
 
Grapes4/16/2021##100   
Grapes#3/1/2021#010   
Grapes3/21/2021##100   
Grapes4/9/2021##100   
Grapes3/1/2021##100   
Grapes##3/1/2021001   
Grapes3/27/2021##100   
Grapes3/1/2021##100   
Grapes#4/28/2021#010   
Grapes##4/9/2021001   



1 ACCEPTED SOLUTION
Ashish_Mathur
Super User
Super User

Hi,

You may download my PBI file from here.

Hope this helps.

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

1 REPLY 1
Ashish_Mathur
Super User
Super User

Hi,

You may download my PBI file from here.

Hope this helps.

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.