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
Anonymous
Not applicable

Convert table with valid-from timestamp to table with entries for each end of month

To all PowerBI enthusiasts,

 

I'm trying to work out a problem concerning the conversion of a table with values and a valid-from timestamp to a table with the values for each end of the month.

 

The original data looks like this:

ProductIDValidfromValue1Value2Value3
ProductA25.01.2022123
ProductB25.02.2022456
ProductC25.03.2022789
ProductA26.05.2022111213

 

What I'd like to convert it to would look like this (having a value for each end of the month, depend on the most recent valid from timestamp):

PeriodProductIDValue1Value2Value3
31.01.2022ProductA123
28.02.2022ProductA123
28.02.2022ProductB456
31.03.2022ProductA123
31.03.2022ProductB456
31.03.2022ProductC789
30.04.2022ProductA123
30.04.2022ProductB456
30.04.2022ProductC789
31.05.2022ProductA111213
31.05.2022ProductB456
31.05.2022ProductC789

 

Does anyone have an idea how to approach this? Help very much appreciated!

 

Many thanks,

Marvin

1 REPLY 1
Greg_Deckler
Community Champion
Community Champion

@Anonymous Are you trying to do this in Power Query, DAX column or measure or ? If DAX, EOMONTH is the function you want.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

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.