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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

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
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors
Top Kudoed Authors