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
AGo
Post Patron
Post Patron

Multiple datasources appending from a list of sources in Power Query 'M'

Hi everybody,

 

I've got a single column table with a list of sources.

A list of mailbox addresses for an Exchange.Contents(Parameter) source to be clearer.

I need to add a column with the Parameter text for each table extracted and then automatically append each of them.

I need that the append query to be refreshed automatically if I add an address in the mailboxes list.

Is this possible with an mQuery?

So I can have a table with all the emails appended in row charachterized with the proper mailbox name (add column), and without querying and appending manually for each mailbox address.

 

Thank you in advance!

1 ACCEPTED SOLUTION

No need to append anything. Just add a column to your existing table where you call the function like this: 

 

image.png

 

So you reference the column with the adresses as your parameter. That will return one table in each row. If you expand that newly created column, all your results will be returned within one consolidated table that also still has the column with the mailbox adress for you to distinguish between the different mailboxes.

Imke Feldmann (The BIccountant)

If you liked my solution, please give it a thumbs up. And if I did answer your question, please mark this post as a solution. Thanks!

How to integrate M-code into your solution -- How to get your questions answered quickly -- How to provide sample data -- Check out more PBI- learning resources here -- Performance Tipps for M-queries

View solution in original post

3 REPLIES 3
Greg_Deckler
Super User
Super User

Invoking @ImkeF... I would think that perhaps a custom function could do the trick for this.


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

No need to append anything. Just add a column to your existing table where you call the function like this: 

 

image.png

 

So you reference the column with the adresses as your parameter. That will return one table in each row. If you expand that newly created column, all your results will be returned within one consolidated table that also still has the column with the mailbox adress for you to distinguish between the different mailboxes.

Imke Feldmann (The BIccountant)

If you liked my solution, please give it a thumbs up. And if I did answer your question, please mark this post as a solution. Thanks!

How to integrate M-code into your solution -- How to get your questions answered quickly -- How to provide sample data -- Check out more PBI- learning resources here -- Performance Tipps for M-queries

Thank you @ImkeF !! This works great!

I only hope that the time filter I'd like to activate on the time column will work, because it's a very large amount of data, and if it import all the rows and then filters it I thinks it's going to be out of memory and crash.

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.