Quantcast
Channel: Desktop topics
Viewing all articles
Browse latest Browse all 213819

How to add rows to a date table in Query Editor

$
0
0

Hi all,

 

I'm a PBI user, and have been playing around for a while, but still not very familiar with "M" (sick of all the different languages I have to learn, MDX, M, DAX ...).

 

I'd just go straight to the point. I've got a one column Date table that captures the transation dates in the ERM. However, I'd like to add extra records to this table to include dates in the future.

 

Currently, I just use Enter Data to create a list of dates of the next month and append that sheet to the Date table. However, I have to manually edit that sheet every month.

 

As I'd like to do other ETL processing on the Date table, is there a way to add rows to the table in query editor (i.e. using M language). Say, always add a month to the table.

 

For instance, this is the current Date table:

...

29/08/2016

30/08/2016 

31/08/2016

 

I'd like to have a table like this:

... 

29/08/2016

30/08/2016 

31/08/2016

01/09/2016

02/09/2016

...

29/09/2016

30/09/2016

 

Any help is appreciated and don't laught at me if it's to easy a quesion.


Viewing all articles
Browse latest Browse all 213819

Trending Articles