Forum Discussion

mohannadBZ's avatar
mohannadBZ
Frequent Visitor
5 years ago
Solved

Repeat rows specific time depends on date

Hi every one ,,,

 

i need your support and help for this issue , 

i have an information table like a below , all what i want to create new table and repeat each row depending on the two column date ( start , end )

 

Employee CodeNameStartEnd
1001John01/01/202115/02/2021
1002Mohannad01/01/202105/04/2021
1003Elsener01/03/202105/04/2021

 

i want the new table as below 

Employee CodeNameMonthYear
1001John012021
1001John022021
1002Mohannad012021
1002Mohannad022021
1002Mohannad032021
1002Mohannad042021
1003Elsener032021
1003Elsener042021

 

and thank you alo 

14 Replies

  • selimovd's avatar
    selimovd
    Most Valuable Professional

    Hey mohannadBZ ,

     

    this is pretty easy in Power Query within Power BI. The following tutorial should guide you to your result:

    How to add rows for dates between start and end dates in Power BI date range data | NateChamberlain.com

     

    If you need any help please let me know.
    If I answered your question I would be happy if you could mark my post as a solution ✔️ and give it a thumbs up 👍
     
    Best regards
    Denis
     
  • mohannadBZ's avatar
    mohannadBZ
    Frequent Visitor

    Hi selimovd 

    thank you for your help ,,,,,,

    But its repeat the rows by day ,can i make it to repeat by month 

    • selimovd's avatar
      selimovd
      Most Valuable Professional

      Hey mohannadBZ ,

       

      you can add a column for the day of the month (1-31) and then filter for day = 1.

      Like this you should only have one entry per month.

       

      If you need any help please let me know.
      If I answered your question I would be happy if you could mark my post as a solution ✔️ and give it a thumbs up 👍
       
      Best regards
      Denis
       
    • Syndicate_Admin's avatar
      Syndicate_Admin
      Administrator

      Hey @mohannadBZ ,

      you can add a column for the day of the month (1-31) and then filter for the day s 1.

      So, you just have to have one ticket a month.

      If you need help, please let me know.
      If I answered your question, I'd be happy if I could mark my post as a ✔️ solution and give it a thumbs up 👍
      Best regards
      Denis
    • Syndicate_Admin's avatar
      Syndicate_Admin
      Administrator

      Hey @mohannadBZ ,

      you can add a column for the day of the month (1-31), and then filter for day s 1.

      So you just have to have one ticket a month.

      If you need help, please let me know.
      If I answered your question, I'd be happy if I could mark my post as a ✔️ solution and give it a thumbs up 👍
      Best regards
      Denis