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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.