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
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
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.

Top Solution Authors