Forum Discussion
Query Editor M Code to fill as duplicate rows between dates
So my data in query editor is structured as such:
What's the best way to add rows to this table that are duplicated between each date. For example, the 1st row shown should be duplicated and have the same row for the dates 1/1/2021 through 1/31/2021. Then similar logic for the second row, it would be duplicated for the dates 2/1/2021 through 2/28/2021.
Hi Anonymous ,
Check this file as example: Download PBIX
Did I answer your question? Mark my post as a solution!
Ricardo
5 Replies
- camargos88Community Champion
Hi Anonymous ,
Can you explain what are you trying to achieve ? I didn't get the logic for it.
Ricardo
- AlBCommunity Champion
Hi Anonymous
Can you provide sample data in tex-tabular format rather than in a screen capture? So that it can be copied and used for a quick test?
- AnonymousNot applicable
The below is an example of the result for the first row.
This would be replicated for each row of the original table with the additional rows being the dates between.
- camargos88Community Champion
Hi Anonymous ,
Check this file as example: Download PBIX
Did I answer your question? Mark my post as a solution!
Ricardo