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
Ajeck
Helper II
Helper II

Compile from Each Table becomes one Report

Dear All,

 

Could some one help me please,

I have 3 amount Sales tables from Each City, and I want to make output as One Table as National Sales Amount here 

compile all sales.png

Here is the PBIX file :  https://ptaab-my.sharepoint.com/:u:/g/personal/akristyonoputro_asuransiastra_com/EdNmrVSC7vRHiCCdjay... 

 

Thankyou for helping me,

 

Regards, 

 

AJi

 

 

2 ACCEPTED SOLUTIONS
v-yiruan-msft
Community Support
Community Support

Hi @Ajeck ,

Please follow the below steps to achieve it, you can find all details in this updated file.

1. Create a summary table with different score codes

create summary table.JPG

2. Create 3 measures and 1 calculated column to get the sum sales per sales code

Jakarta = SUM('Jakarta'[Sales Amount])
Semarang = SUM('Smrg'[Sales Amount])
Surabaya = SUM('Surabaya'[Sales Amount])
Sales Amount = SWITCH('Summary Table'[Sales Code],"Jakarta",[Jakarta],"Semarang",[Semarang],"Surabaya",[Surabaya])

3. Drag the field "Sales Code" of table Summary Table and measure "Sales Amount" onto table visual

Compile from Each Table becomes one Report.JPG

In addition, you can achieve it in Power Query Editor. I just create another sample file, you can check the applied steps in it.

Note: It is better to download the latest version of Power BI Desktop in order to open these sample files successfully.

Best Regards

Rena

Community Support Team _ Rena
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-yiruan-msft
Community Support
Community Support

Hi @Ajeck ,

Please follow the below steps to achieve it, you can find all details in this updated file.

1. Create a summary table with different score codes

create summary table.JPG

2. Create 3 measures and 1 calculated column to get the sum sales per sales code

Jakarta = SUM('Jakarta'[Sales Amount])
Semarang = SUM('Smrg'[Sales Amount])
Surabaya = SUM('Surabaya'[Sales Amount])
Sales Amount = SWITCH('Summary Table'[Sales Code],"Jakarta",[Jakarta],"Semarang",[Semarang],"Surabaya",[Surabaya])

3. Drag the field "Sales Code" of table Summary Table and measure "Sales Amount" onto table visual

Compile from Each Table becomes one Report.JPG

In addition, you can achieve it in Power Query Editor. I just create another sample file, you can check the applied steps in it.

Note: It is better to download the latest version of Power BI Desktop in order to open these sample files successfully.

Best Regards

Rena

Community Support Team _ Rena
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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.