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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Yarisch77
Frequent Visitor

Edate Dax

Hi there,

I ve tried to create a comming due Dax for incomming goods control. This works great since edate works with months:

 

Comming Due WEK = CALCULATE(COUNT('Wareneingang'[Status]);CONTAINSSTRING('Wareneingang'[TheoretischesFreigabedatum] < EDATE(TODAY();1);'Wareneingang'[TheoretischesFreigabedatum] > TODAY()))
 
This gives me all comming dues within the next 30 days.
 
Now I want to have the same query instead with 30days with 4 days.
 
Theoretically u can calculate how month are 4 days in decimal (0.13333) but this doesnt work.
 
Any ideas?
3 REPLIES 3
lbendlin
Super User
Super User

Note that EDATE is much more subtle than just adding/subtracting 30 days. It also gracefully handles missing dates, like when you say EDATE("2020-03-31",-1)

harshnathani
Community Champion
Community Champion

Hi @Yarisch77 ,

 

 

CALCULATE(COUNT('Wareneingang'[Status]);CONTAINSSTRING('Wareneingang'[TheoretischesFreigabedatum] < TODAY()-4 ;'Wareneingang'[TheoretischesFreigabedatum] > TODAY()))

 

Regards,
Harsh Nathani

Did I answer your question? Mark my post as a solution! Appreciate with a Kudos!! (Click the Thumbs Up Button)

 

harshnathani
Community Champion
Community Champion

Hi @Yarisch77 ,

 

 

You can use Today()-4 , in this case. Pls check and let me know.

 

Regards,

HN

Did I answer your question? Mark my post as a solution! Appreciate with a Kudos!! (Click the Thumbs Up Button)

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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