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

The FabCon + SQLCon recap series starts April 14th at 8am Pacific. If you’re tracking where AI is going inside Fabric, this first session is a can't miss. Register 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
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

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.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

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