Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreThe 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
I have a one column with dates from year 2021 to year 2024. From this, how can i make seprate columns for each year.
Hi,
Create a new Calculated column by this DAX Code:
YearColumn = YEAR('YourTable'[DateColumn])
Or by:
YearColumn = FORMAT('YourTable'[DateColumn],"Yyyy")
pls provide some sample data and expected output
Proud to be a Super User!
Hi @ealiisl
What does the data look like?
If something like this you can tell the data to pivot.
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.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 53 | |
| 40 | |
| 38 | |
| 19 | |
| 18 |
| User | Count |
|---|---|
| 70 | |
| 69 | |
| 34 | |
| 33 | |
| 30 |