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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register 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!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

December 2024

A Year in Review - December 2024

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