Forum Discussion
Summarize table depending on several fact tables
Markando where are you summarising at the moment, in a new table? or not ? sorry it would be best if i could see what you were actually doing? and the error or result you getting
Hi
Im creating a new table. Let me try to show with a detailed summary:
I got five tables as below:
| TEAM | |
| Code | Name |
| 1 | A |
| 2 | B |
| 3 | C |
| 4 | D |
| CUSTOMERS | |
| CustomerCode | TeamCode |
| 1 | 1 |
| 2 | 2 |
| 3 | 3 |
| 4 | 4 |
| Sales | |
| CustomerCode | Amount |
| 1 | 1000 |
| Shipments | |
| CustomerCode | Shipments |
| 2 | 400 |
| Cases | |
| CustomerCode | Shipments |
| 3 | 5000 |
What I want to do is create a new table with all teams that has been active in either of the Sales, shipments or cases table. The primary key in these tables are customerCode. All CustomerCode is related to a single teamcode.
My DAX above works perfect and I get this table:
| TeamCode | TeamName | SUM OF SALES | SUM OF CASES | SUM OF SHIPMENTS |
| 1 | A | 1000 | ||
| 2 | B | 400 | ||
| 3 | C | 5000 |
However I would like the same table, but withouth the summing. If I remove the sums I get a summarize over the entire team-table and thus also showing team D.
- v-xjiin-msft8 years ago
Solution Sage
Hi Markando,
Why don't you want to use SUMMARIZE()?
Per my understanding about your issue, the SUMMARIZE() should be the easiest way to achieve your requirement since you don't want to use Power Query.
Thanks,
Xi Jin.- Markando8 years agoFrequent Visitor
Hi
I'm more then happy to use summarize()! However my question is how do i use a filter in either summarize or summarizecolumns to get a list as below depending on all the team-values that exist in either of the three fact tables