Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
Good afternoon
I have the following question: I have a column with the check-out dates of hotel guests and I need to create a new column that always brings me the 15th of the month following the check-out date.
Examples: 08/10/24 - return 09/15/2024
10/23/2024 - return 11/15/2024
Would anyone know how to do it?
Solved! Go to Solution.
Calculated column:
NextMonth15th =
DATE(YEAR([CheckOutDate]), MONTH([CheckOutDate]) + 1, 15)
Power Query
= Date.From(Date.AddMonths([CheckOutDate], 1)) + (15 - Date.Day(Date.From(Date.AddMonths([CheckOutDate], 1))))
Proud to be a Super User! | |
Easy enough,
= EOMONTH([check-out date],0)+15
Expertise = List.Accumulate( {Days as from Today}, {Skills and Knowledge}, (Current, Everyday) => Current & Day.LearnAndPractise(Everyday) ) |
Calculated column:
NextMonth15th =
DATE(YEAR([CheckOutDate]), MONTH([CheckOutDate]) + 1, 15)
Power Query
= Date.From(Date.AddMonths([CheckOutDate], 1)) + (15 - Date.Day(Date.From(Date.AddMonths([CheckOutDate], 1))))
Proud to be a Super User! | |
Hi,
Try:
Following Date = DATEADD(STARTOFMONTH( NEXTMONTH('Table'[Date])),14,DAY)
Better Option to create the required field in the Power Query (if you run into performance issues).
Regards,
Oktay
If it helps, appreciate for Kudos and mark as solution 🙏🏻!!!
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 |
|---|---|
| 48 | |
| 44 | |
| 40 | |
| 18 | |
| 18 |
| User | Count |
|---|---|
| 69 | |
| 69 | |
| 32 | |
| 32 | |
| 32 |