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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

How to Automatically differentiate the date without "Year" at last.

Hi All,

 

Need some suggestions and Help,

 

I am Having a data with has date in the format (DD.MM) without the year but the dates ranges from Current to Future , When we load the same PowerBI only considering the Data as only Current Year.

 

SukanyaS_0-1637748358408.png

 

SukanyaS_1-1637748397409.png

 

Can anyone tell how to How to make the transformation so that Powerbi will differentiate the Dates with Year.

 

Thanks 

Sukanya S

3 REPLIES 3
HotChilli
Super User
Super User

You could unpivot the columns to get the dates in one column.

Then add an index.

If the cutoff is 31.12, you could note the index value of this (might be 365 if you have a whole year of current data) and add a year column with an 'if' statement dependent on the index being higher or lower than the 31.12 index (e.g.365).*

Then merge the day/month column with the year column to get a valid date column.

----

* -> with more work this could be dynamic i.e. not comparing to a hardcoded value but at least you could prove the algorithm by hardcoding it.

Anonymous
Not applicable

Thanks @HotChilli  I will check and execute let you the status as well 

Hi @Anonymous 

 

Have you got the solution? Any update?

 

Best Regards,
Community Support Team _ Jing

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.