• Skip to main content
  • Skip to header right navigation
  • Skip to site footer

My Online Training Hub

Learn Dashboards, Excel, Power BI, Power Query, Power Pivot

  • Courses
  • Pricing
    • Free Courses
    • Power BI Course
    • Excel Power Query Course
    • Power Pivot and DAX Course
    • Excel Dashboard Course
    • Excel PivotTable Course – Quick Start
    • Advanced Excel Formulas Course
    • Excel Expert Advanced Excel Training
    • Excel Tables Course
    • Excel, Word, Outlook
    • Financial Modelling Course
    • Excel PivotTable Course
    • Excel for Customer Service Professionals
    • Excel for Operations Management Course
    • Excel for Decision Making Under Uncertainty Course
    • Excel for Finance Course
    • Excel Analysis ToolPak Course
    • Multi-User Pricing
  • Resources
    • Free Downloads
    • Excel Functions Explained
    • Excel Formulas
    • Excel Add-ins
    • IF Function
      • Excel IF Statement Explained
      • Excel IF AND OR Functions
      • IF Formula Builder
    • Time & Dates in Excel
      • Excel Date & Time
      • Calculating Time in Excel
      • Excel Time Calculation Tricks
      • Excel Date and Time Formatting
    • Excel Keyboard Shortcuts
    • Excel Custom Number Format Guide
    • Pivot Tables Guide
    • VLOOKUP Guide
    • ALT Codes
    • Excel VBA & Macros
    • Excel User Forms
    • VBA String Functions
  • Members
    • Login
  • Blog
  • Excel Webinars
  • Excel Forum
    • Register as Forum Member
  • Login

Insert Rows based on number, date transformation|Power Query|Excel Forum|My Online Training Hub

You are here: Home / Insert Rows based on number, date transformation|Power Query|Excel Forum|My Online Training Hub

office scripts course

Avatar
sp_LogInOut Log In sp_Registration Register
sp_Search Search
Advanced Search|Last Search Results
Search
Forum Scope




Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
sp_Search Search
sp_RankInfo
Lost password?
sp_CrumbsHome HomeExcel ForumPower QueryInsert Rows based on number, date t…
sp_PrintTopic sp_TopicIcon
Insert Rows based on number, date transformation
Avatar
pav hun
Member
Members
Level 0
Forum Posts: 8
Member Since:
August 17, 2019
sp_UserOfflineSmall Offline
1
August 17, 2019 - 5:42 am
sp_Permalink sp_Print

Hi All,

I would like to generate new rows based on a number in the row and then transform the number into the month.

I am trying to create a budget plan for the next year, where some invoices comes only one a year and some of them each month. I have a column [frequency] that represents how often the invoice come. I was able to insert rows, but then I was lost how to transfom a number into a date e.g. 1.4.2020

The file with a sample and a result in enclosed.

Thanks Pavel

Avatar
Mynda Treacy
Admin
Level 10
Forum Posts: 4614
Member Since:
July 16, 2010
sp_UserOfflineSmall Offline
2
August 17, 2019 - 8:27 pm
sp_Permalink sp_Print

Hi Pavel,

Can you try uploading the file again, it's not attached.

Thanks,

Mynda

Avatar
pav hun
Member
Members
Level 0
Forum Posts: 8
Member Since:
August 17, 2019
sp_UserOfflineSmall Offline
3
August 17, 2019 - 10:15 pm
sp_Permalink sp_Print

Hi Mynda,

It is there now.

Pavel

Avatar
Mynda Treacy
Admin
Level 10
Forum Posts: 4614
Member Since:
July 16, 2010
sp_UserOfflineSmall Offline
4
August 18, 2019 - 1:25 pm
sp_Permalink sp_Print

Hi Pavel,

Thanks for uploading the file. I have a few questions.

1. Is the 'result' sheet the result you managed to get, or the result you're trying to get? If it's the result you're trying to get, then can you please provide a mock up of the result you're wanting?

2. Where is your query? It looks like the table on the 'result' sheet comes from a query, so I'm wondering where it is so I can see where you're up to.

3. Will there only ever be 3 frequencies; 1, 4 or 12? or could there be others?

Mynda

Avatar
pav hun
Member
Members
Level 0
Forum Posts: 8
Member Since:
August 17, 2019
sp_UserOfflineSmall Offline
5
August 18, 2019 - 5:52 pm
sp_Permalink sp_Print

Hi Mynda,

I enclosed a new files. I hope it better describes the puzzle. 

Input file/table represents the manual input, that is supposed to be used as a source for the query.

Result tab represents what I want to achieve.

Then green tabs are represents my current solution. I use parameter and calendar tab to create myResult tab, however I dont know how to reclect the frequency in to the myResult. Invoice that is paid once a year has 12 rows.

To your questions

1) that is the result I am trying to get

2) input and result are manually created in this sample

3) I quess there might be 1,2,4, 6 and 12

 

Thanks, Pavel

Avatar
Mynda Treacy
Admin
Level 10
Forum Posts: 4614
Member Since:
July 16, 2010
sp_UserOfflineSmall Offline
6
August 20, 2019 - 10:46 am
sp_Permalink sp_Print

Hi Pavel,

Thanks, much clearer now. See solution attached in query called 'input' on sheet called 'Solution' .

Mynda

Avatar
pav hun
Member
Members
Level 0
Forum Posts: 8
Member Since:
August 17, 2019
sp_UserOfflineSmall Offline
7
August 20, 2019 - 11:41 pm
sp_Permalink sp_Print

Hi Mynda,

Thanks for the solution with list function using a parameter. I did a little clumsy adjustment, so that the quaterly invoices are expected to come in respective quarters, file is in the attachment.  

Br, Pavel

Avatar
Mynda Treacy
Admin
Level 10
Forum Posts: 4614
Member Since:
July 16, 2010
sp_UserOfflineSmall Offline
8
August 21, 2019 - 12:51 pm
sp_Permalink sp_Print

Ah, yes, I didn't spread the quarterly payments, but your solution is perfect. Glad we got there together in the end 🙂

sp_Feed
Go to top
Forum Timezone: Australia/Brisbane
Most Users Ever Online: 245
Currently Online: Marcel Bila, Shawn Ward, Rick Scott, Leigh Thomas, Sheilah Taylor
Guest(s) 10
Top Posters:
SunnyKow: 1432
Anders Sehlstedt: 880
Purfleet: 414
Frans Visser: 346
David_Ng: 306
lea cohen: 237
Jessica Stewart: 219
A.Maurizio: 213
Aye Mu: 201
jaryszek: 183
Newest Members:
Sheilah Taylor
Clare Webber
David Jenssen
Dominic Brosnahan
Young You
Jennifer Owens
Mohamed Touahria
Sheila McCall
Nicholas Montano
John Babcock
Forum Stats:
Groups: 3
Forums: 24
Topics: 6524
Posts: 28551

 

Member Stats:
Guest Posters: 49
Members: 32804
Moderators: 2
Admins: 4
Administrators: Mynda Treacy, Philip Treacy, Catalin Bombea, FT
Moderators: Velouria, Riny van Eekelen
© Simple:Press —sp_Information

Sidebar

Blog Categories

  • Excel
  • Excel Charts
  • Excel Dashboard
  • Excel Formulas
  • Excel Office Scripts
  • Excel PivotTables
  • Excel Shortcuts
  • Excel VBA
  • General Tips
  • Online Training
  • Outlook
  • Power Apps
  • Power Automate
  • Power BI
  • Power Pivot
  • Power Query
microsoft mvp logo
trustpilot excellent rating
Secured by Sucuri Badge
MyOnlineTrainingHub on YouTube Mynda Treacy on Linked In Mynda Treacy on Instagram Mynda Treacy on Twitter Mynda Treacy on Pinterest MyOnlineTrainingHub on Facebook

Sign up to our newsletter and join over 400,000
others who learn Excel and Power BI with us.

 

Company

  • About My Online Training Hub
  • Disclosure Statement
  • Frequently Asked Questions
  • Guarantee
  • Privacy Policy
  • Terms & Conditions
  • Testimonials
  • Become an Affiliate
  • Sponsor Our Newsletter

Support

  • Contact
  • Forum
  • Helpdesk - For Technical Issues

Copyright © 2023 · My Online Training Hub · All Rights Reserved. Microsoft and the Microsoft Office logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries. Product names, logos, brands, and other trademarks featured or referred to within this website are the property of their respective trademark holders.