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

Create one summarized table from two tables.

I have tables like this:

Table 1

CustomAct QtyAct Rev
11223344323221
2233445524422223
111222333453214
223344554545454

Table 2

CustomPlan QtyPlan Rev
AABBCCDD24222324
111222333453214
11223344122229
223344554545454

 

I would like to summarize the two tables seperately. And then merge the two tables with Custom being the common column resulting in 5 columns.

4 REPLIES 4
Ashish_Mathur
Super User
Super User

Hi,

I believe that the ideal structure to have is where you have a single table.  Rename the second and third columns to Qty and Rev.  In both tables insert a column (titled as Nature) with Actual and Plan entries in that column.  In the Query Editor, append the two tables.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Anonymous
Not applicable

By adding 

custom = distinct(union(distinct(Table[Custom]),distinct(Table[Custom])))

I am seeing one custom column. In the same dimension/table, I wish to see the ACT QTY, ACT  Volume, Plan QTY, Plan Volume.

amitchandak
Super User
Super User

@Anonymous , Create a common dimension custom and join with both tables

 

custom = distinct(union(distinct(Table[Custom]),distinct(Table[Custom])))

 

use that to analyze. You can individual measure from both tables and combine one as per need

 

m1= Sum(Table1[Act Qty])

 

M2 = sum(Table2[Plan Qty])

 

M3 = [m1] +[m2]

 

https://amitchandak.medium.com/power-bi-when-i-asked-you-to-create-common-tables-a-quick-dax-solution-8e3eccb41bda

Anonymous
Not applicable

custom = distinct(union(distinct(Table[Custom]),distinct(Table[Custom])))

I am seeing one custom column. In the same dimension/table, I wish to see the ACT QTY, ACT  Volume, Plan QTY, Plan Volume.

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.