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

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

Reply
badger007
Frequent Visitor

Conditional sum of a column

Hi guys,

I have a table with dates and column values. Also, I have two measures: one with the third month from today, and a quantity to be applied.

The goal is to apply the quantity, in this case, it's 300, to the sum of values in the product_2 column (it'll always be this column) where the month equals the date_to_apply measure. In the example, the (200 and 200 and 200) from September rows should become 900.

I'm struggling with this operation.

Thanks for your time and help.

 

badger007_1-1658763930698.png

 

 

1 ACCEPTED SOLUTION
ryan_mayu
Super User
Super User

@badger007 

could you pls provide the sample data ,not the screenshot

maybe you can try this

measure= if(max(month)=month(today())+2, sum(product2)+300,sum(product2))

2.PNG





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

3 REPLIES 3
ryan_mayu
Super User
Super User

@badger007 

could you pls provide the sample data ,not the screenshot

maybe you can try this

measure= if(max(month)=month(today())+2, sum(product2)+300,sum(product2))

2.PNG





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




thanks! it solved my problem

you are welcome





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Helpful resources

Announcements
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.