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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
erhan_79
Post Prodigy
Post Prodigy

Query Date Formula

hi there ;

 

i need your kind support for below issue 

 

i have a date typed column on query side , near this column i want to create a new column which includes 1 day earlier data then my date column

 

you can what i need as below wtih right new date column 

 

caps1.JPG

 

thanks in advance

1 ACCEPTED SOLUTION

@erhan_79 , That was dax in M try like

 

New Date = [Date] -duration(1,0,0,0)

or

New Date = [Date] -#duration(1,0,0,0)

View solution in original post

4 REPLIES 4
amitchandak
Super User
Super User

@erhan_79 ,

 

As a new column

new date = [Date] -1

hi @amitchandak  @pranit828 

 

 i want to create a new column on the power query side   , but when i add a custom column with below formula ,  it gives below error 

 

caps1.JPG

 

 

cap.JPG

 

@erhan_79 , That was dax in M try like

 

New Date = [Date] -duration(1,0,0,0)

or

New Date = [Date] -#duration(1,0,0,0)

pranit828
Community Champion
Community Champion

HI @erhan_79 

Create a column

New date = [date] - 1





PBI_SuperUser_Rank@1x.png


Hope it resolves your issue? 
Did I answer your question? Mark my post as a solution!

Appreciate your Kudos, Press the thumbs up button!!
Linkedin Profile

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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