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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

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

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

Top Solution Authors
Top Kudoed Authors