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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
Anonymous
Not applicable

Write a column of Date depending of a measure containing dates

Hello,

I got a measure which contains years (Sometimes there are the same year many times). For exemple I can have 2019,2019,2019,2021,2021,2021.

And I would like to create a column in a new table that gonna summarize and put only 2019 and 2021 one times.

As my years are in a measure, all I tried failed

Do you have any suggestion?

Thank you for your help

Best regards

1 ACCEPTED SOLUTION
v-yingjl
Community Support
Community Support

Hi @Anonymous ,

If your year measure is calculated based on a date column, you can create a new calculated table like this directly without using the measure:

Table 2 = 
SUMMARIZE (
    ADDCOLUMNS ( ALL ( 'Table' ), "Year", YEAR ( 'Table'[Date] ) ),
    [Year]
)

year.png

 

Best Regards,
Community Support Team _ Yingjie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-yingjl
Community Support
Community Support

Hi @Anonymous ,

If your year measure is calculated based on a date column, you can create a new calculated table like this directly without using the measure:

Table 2 = 
SUMMARIZE (
    ADDCOLUMNS ( ALL ( 'Table' ), "Year", YEAR ( 'Table'[Date] ) ),
    [Year]
)

year.png

 

Best Regards,
Community Support Team _ Yingjie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

Thank you!

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

Top Solution Authors
Top Kudoed Authors