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
lherbert501
Post Partisan
Post Partisan

DAX Previous month + value greater than 0

Hi there,
 
Could somebody please help me with my dax query? I have my simple query below which works fine.
 
I want it to be able to return if the output is equal to 0, then move to the next day that has a value greater than 0
 
 
2 Months ago Sales =
var _PrevMonth =  DATEADD(RS_Dates[DateFull],-1,MONTH)
return
CALCULATE([CurrentMonthSales], _PrevMonth)
 
Thanks
1 REPLY 1
Thennarasu_R
Responsive Resident
Responsive Resident

Hi @lherbert501 

you Could create this Measure ,

Thennarasu_R_0-1678295591133.png

Test = CALCULATE(SUM(Refference[Value]),DATEADD('Dim_ date'[Date],-1,MONTH),Refference[Value]>0)



If this helpful to you,Give Accepeted a Solution.

Thanks,
Thennarasu

 

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.