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
ealiisl
New Member

How to make Lists from Date column.

I have a one column with dates from year 2021 to year 2024. From this, how can i make seprate columns for each year. 

4 REPLIES 4
Bibiano_Geraldo
Super User
Super User

Hi,
Create a new Calculated column by this DAX Code:

YearColumn = YEAR('YourTable'[DateColumn])

 

Or by:

YearColumn = FORMAT('YourTable'[DateColumn],"Yyyy")
ryan_mayu
Super User
Super User

pls provide some sample data and expected output





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




SamWiseOwl
Super User
Super User

Hi @ealiisl 
What does the data look like?

SamWiseOwl_0-1731935413883.png

If something like this you can tell the data to pivot.

SamWiseOwl_1-1731935457041.pngSamWiseOwl_2-1731935469383.png

 


If you are happy with this answer please mark as a solution for others to find !

Kudos are always appreciated! Check out our free Power BI video courses.

Hello Sam:

unfortunately not like this. i dont want to count the occurances. I want each year in seprate column because every cell has different date. 

 

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