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

July 28 - August 9 | Final Round of the Power BI Dataviz World Championships. This is your chance. Learn more

Reply
tkoopmann
Frequent Visitor

DateValue Year Issue

I'm having issues with DATEVALUE pulling the correct year. It's pulling 2024 for all date years. This functioned correctly prior to the new year.

 

Examples below. Month & Year is a text column, pulling from a typical dimDate table where Month & Year = FORMAT(dimDate[Date], "MMM-YY")

I have alternatively used 

"Date", DATE(YEAR(dimDate[Month & Year]),MONTH(dimDate[Month & Year]), 1
in summarize, but the issue remains the same with a report refresh for this year. 

 

Snip 1.PNG

 

 

 

 

 

 

 

 

 

 

 

 

 

Snip 2.PNG

2 ACCEPTED SOLUTIONS
Anonymous
Not applicable

@tkoopmann  Have you tried using the below calculated column for Month & Year instead? I found that after changing "YY" to "YYYY" the years were pulled in correctly by the DATEVALUE function.


 Month & Year =
FORMAT ( 'dimDate'[Date], "MMM-YYYY" )

View solution in original post

That works until I change the column to a date type. I'm needing "Date" in the Summarize function to be a date type to tie back to the dimDate table.

 

*uness there is a more efficient way to average monthly % charged for the year.  I could probably use a measure instead of this table altogether. 

 

View solution in original post

5 REPLIES 5
Anonymous
Not applicable

@tkoopmann  Have you tried using the below calculated column for Month & Year instead? I found that after changing "YY" to "YYYY" the years were pulled in correctly by the DATEVALUE function.


 Month & Year =
FORMAT ( 'dimDate'[Date], "MMM-YYYY" )

That works until I change the column to a date type. I'm needing "Date" in the Summarize function to be a date type to tie back to the dimDate table.

 

*uness there is a more efficient way to average monthly % charged for the year.  I could probably use a measure instead of this table altogether. 

 

Anonymous
Not applicable

How is that not working for you? I played around with some sample data and was able to make it work.

bchager6_0-1704232623086.pngbchager6_1-1704232688753.png

 

I may have changed the wrong Month & Year column.

 

Adjusting the dimDate Month & Year column to  FORMAT ( 'dimDate'[Date], "MMM-YYYY" ) did correct the issue in the summarize table. 

 

Thank you!

Anonymous
Not applicable

Excellent. You're welcome!

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

Fabric Community Sticker Design Challenge Barcelona Carousel

Fabric Community Sticker Challenge - Barcelona 2026

If you love stickers, then you will definitely want to check out our community sticker challenge, Barcelona edition!

July Power BI Update Carousel

Power BI Monthly Update - July 2026

Check out the July 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.