Dynamic Function name in Power query

cidfidou

Board Regular
Joined
Jan 19, 2009
Messages
163
Hi Guys,

I have been looking online for a while now and i cant find a way to create a dynamic way of naming a function inside the data model.

Let's say I have a Dataset called A and one Dataset called B (Txt files) which have the same layout that i am cleaning and appending through power query into one table.

I am trying for example to do a delta of col 1 in Dataset A and col 1 in Dataset B for specific attributes. (i need a function as I want to retrieve the function into the power pivot)

I am doing my delta calculation in the data model and the title of the function would be "Delta Col1 B vs A".

How can I create a dynamic function name that would become for example "Delta Col1 C vs A" if I added a new dataset C instead of B (I can retrieve the name of the dataset through the name of the text file)

Thanks in advance
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!

Forum statistics

Threads
1,213,531
Messages
6,114,172
Members
448,554
Latest member
Gleisner2

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top