cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
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

 

 

1 ACCEPTED SOLUTION
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
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

Super User IV
Super User IV

@Ajeck , you can append the tree tables

https://radacad.com/append-vs-merge-in-power-bi-and-power-query

https://www.sqlbi.com/articles/from-sql-to-dax-joining-tables/



Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Dashboard of My Blogs !! YouTube Channel !! Connect on Linkedin

Proud to be a Super User!

Helpful resources

Announcements
secondImage

Happy New Year from Power BI

This is a must watch for a message from Power BI!

December Update

Check it Out!

Click here to read more about the December 2020 Updates!

Community Blog

Check it Out!

Click here to read the latest blog and learn more about contributing to the Power BI blog!

Get Ready for Power BI Dev Camp

Get Ready for Power BI Dev Camp

Mark your calendars and join us for our next Power BI Dev Camp!.

Top Solution Authors
Top Kudoed Authors