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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.