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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
SachinNamdeo-20
Helper II
Helper II

For current date

" How can i get current date dynamically ,today function only give me last date of my data table  but i want to calculate date dynamically if i select any date of calender it gives me that date not todays date."

1 ACCEPTED SOLUTION
Mahesh0016
Super User
Super User

DD_Current =

 VAR MN_Date = MIN('Date'[Date])

 VAR Result = DATE(YEAR(TODAY()),MONTH(MN_Date),DAY(MN_Date))

 RETURN
 Result
Mahesh0016_0-1671110576928.png

 

I hope it is helpful for you.

View solution in original post

6 REPLIES 6
Mahesh0016
Super User
Super User

DD_Current =

 VAR MN_Date = MIN('Date'[Date])

 VAR Result = DATE(YEAR(TODAY()),MONTH(MN_Date),DAY(MN_Date))

 RETURN
 Result
Mahesh0016_0-1671110576928.png

 

I hope it is helpful for you.

Thanks sir.

 

Mahesh0016
Super User
Super User

You want current year date right. 

yes, if i select 20 aug on my date slicer then measure give me exact thaat value not todays date 15-12-22

Mahesh0016
Super User
Super User

Can you explain with some data snap shot for more understanding. 

"I have this Screenshot (34).png

 i want if i select 15 aug then measure calculaion give me return value of 15 aug"Screenshot (35).png

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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