Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Use a result query as a table for the next iteration [Solved]

Hello everybody,

 

I'm trying to use Power query and Excel as a kind of Database, maybe it's not the good solution, but I would like your advice.

As my english isn't the best, I made a small drauwn to explain : 

I would like to be able to use a result query as the main query the next month, so I can recursively add data each month :  The Yellow arrow is my problem I guess !

 

Pierrem31_2-1668610831590.png

 

Thank you for your help

 

Pierre

PS unable to use the drag and drop function to add a xlsx file ... sorry for that

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hello,

 

I found a easy way to answer my problem :

 

- Create a "connexion only" on first Table (AAA)

- Create a connexion on the second Table (BBB), make your modification (Append ...), Save and Publish in the Workbook

- At this step, you should have a new Table named BBB_2, for example

- Delete the entire Table BBB

- Rename the Table BBB_2 => BBB

- That's all folks

 

It works for me, thank you for your help everybody

 

View solution in original post

7 REPLIES 7
JamesRobson
Resolver II
Resolver II

@Anonymous could you use a blank query and just append each month in?

Fake Data tables

JamesRobson_0-1668705465512.png

Start with blank query then append each month/table and it'll keep growing

JamesRobson_1-1668705498667.png

let
Source = #table(null,{}),
#"Appended Query" = Table.Combine({Source, #"Jan Data", #"Feb Data"})
in
#"Appended Query"

 

 

Think that gives the result you are after?

 

Thanks,

 

 

 

Anonymous
Not applicable

Hi, 

Is it more clear with this snapshot ?

The "ID" column is the mail

Thanks

 

Pierrem31_0-1668672329348.png

 

 

Anonymous
Not applicable

Hello,

 

I found a easy way to answer my problem :

 

- Create a "connexion only" on first Table (AAA)

- Create a connexion on the second Table (BBB), make your modification (Append ...), Save and Publish in the Workbook

- At this step, you should have a new Table named BBB_2, for example

- Delete the entire Table BBB

- Rename the Table BBB_2 => BBB

- That's all folks

 

It works for me, thank you for your help everybody

 

Anonymous
Not applicable

At least, her is a snap of my tables : 

 

Pierrem31_0-1668621678605.png

 

@Anonymous If there is no way to tell the month from the data then the file should have some indication, otherwise how will you define logic?

Anonymous
Not applicable

I have to precise : there isn't any kind of calculation, it's just some tables like "Name, Surname, Mail, ..."

I try to add a link to my file, 

Regards

AntrikshSharma
Community Champion
Community Champion

@Anonymous It is doable with List.Accumulate, you can post the data on google drive and create a shareable link.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors
Top Kudoed Authors