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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply

How Do I Convert a Date Column to A Measure?

Hello,

I need to convert my 'calendar'[Date] column to a measure. 

In my scenario, I cannot use MAX('calendar'[Date]) or SELECTEDVALUE('calendar'[Date]),MIN('calendar'[Date]), etc. 
I just need the plain 'calendar'[Date] to be converted or somehow aggregiated in to a measure. Im not sure which function to use. 

I need to use the [Date] in to a condition, 
IF(Month(???(calendar[Date])) = MONTH(TODAY()), ... , ....)

I need a function on the ??? part. 

Thanks!

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @EvanGetsItDone ,

 

Why can't use the MAX or MIN function to reference the date in the calendar?

Please provide some sample data and expected results in detail.

I made an example on my own. In this example, the MAX function refers to the date of the current row of the calendar.

vstephenmsft_0-1664343948830.png

 

 

Best Regards,

Stephen Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @EvanGetsItDone ,

 

Why can't use the MAX or MIN function to reference the date in the calendar?

Please provide some sample data and expected results in detail.

I made an example on my own. In this example, the MAX function refers to the date of the current row of the calendar.

vstephenmsft_0-1664343948830.png

 

 

Best Regards,

Stephen Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

Hi @Anonymous ,

 

I am facing a similar issur in which i am trying to create a measure in which i have to use If condition in which i am comparing my delivery date column with today dates and it's not working . I have to compare all dates and due to that i am not able to use Min, Max, Selected value etc function .

Is there any way where you can help. Please see below screenshot of the sample data and Measure which i created :

sol_1.JPGSALES_yd.JPG

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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.

Top Solution Authors