Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hi all,
I need to integrate two pivot tables, PA and PB. PA comes from datasource DA, PB comes from datasource DB and both PA and PB have a measure ROI.
In order to show the ROI fields, I have created two measures under DA and DB, but the calculation logic is the same. Say ROI in PA is:
=DIVIDE(AVERAGE(DA[actual_income]),SUM(DA[cost]))
then ROI in PB is
=DIVIDE(AVERAGE(DB[actual_income]),SUM(DB[cost]))
This seems to be duplicated work. So is it possible to create just one measure(or something else), and can be applied to multiple pivot tables? Just like something below:
=DIVIDE(AVERAGE(actual_income]),SUM([cost]))
You help would be greatly appreciated!
Solved! Go to Solution.
Hi @Anonymous
You can keen DatasourceA and DatasourceB in-tact, but maybe create a DatasourceC which is additional and is just the first two tables Appended/Unioned together.
In the Query Editor you can use the Append as new feature but you'll need to make sure the columns are aligned.
In Power BI you can create a new calculated table using the following code, but you will need to make sure two tables share the same column structure.
Table = UNION(TableA,TableB)
Hi @Anonymous
How similar are the two data sources? Can the tables be combined into 1 (using DAX or M) which may reduce the number of measures you need to make?
Even if you leave the two datasources in tact for other reasons, you could perhaps create a third datasource which is the two stacked together? Just a question/suggestion really
Hi @Phil_Seamark,
Thanks for you reply.
Unfortunately, for some reasons, those two data sources must be kept intact even though some of their fields are quite similar.
I could definitely try combine those two datasource as one. Do you know if there is a quick way to combine those two?
Hi @Anonymous
You can keen DatasourceA and DatasourceB in-tact, but maybe create a DatasourceC which is additional and is just the first two tables Appended/Unioned together.
In the Query Editor you can use the Append as new feature but you'll need to make sure the columns are aligned.
In Power BI you can create a new calculated table using the following code, but you will need to make sure two tables share the same column structure.
Table = UNION(TableA,TableB)
User | Count |
---|---|
117 | |
74 | |
62 | |
50 | |
46 |
User | Count |
---|---|
174 | |
125 | |
60 | |
60 | |
57 |