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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
i_kafali
Helper II
Helper II

Creating Dates with Values

Hi all,

 

I have columns as below;

 

Years and months coming from dateset in number format. What i want to do is to create date out of this numbers. 

Dates has to be last dayof the period 

For instance 2018 and 6 should be 30.06.2018 and 2019 and 3 should be 31.03.2019 and so on. 

 

Thanks in advance

 

YEARMONTH
20186
20187
20188
20189
201810
201811
201812
20191
20192
20193
1 ACCEPTED SOLUTION
AndreyBear
Advocate II
Advocate II

eomonth(date([year],[month],1),0)

View solution in original post

2 REPLIES 2
AndreyBear
Advocate II
Advocate II

eomonth(date([year],[month],1),0)

Thank you it works 🙂

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.