Forum Discussion
Top N Customers / Products
- 9 years ago
Do you mean that you want to show the Top N customers of current month and previous month in the same column chart as below?
If yes, we need to create two tables for current month and previous month, then union these two tables, and use the columns of the union table in a column chart.
CurrentMRank = SUMMARIZECOLUMNS ( Table1[Customer], "CurrentMTD", [CurrentMTD], "PreMTD", [PreMTD], "Rank", [Rank_CurrentMTD], "Type", "CurrentMonth" )PreMRank = SUMMARIZECOLUMNS ( Table1[Customer], "CurrentMTD", [CurrentMTD], "PreMTD", [PreMTD], "PreMRank", [Rank_PreMTD], "Type", "PreMonth" )Current&PreM = UNION ( CurrentMRank, PreMRank )
Best Regards,
Herbert
v-haibl-msft I wanted to show both values on a column chart in the same visual but I guess this is not possible
- v-haibl-msft9 years ago
Microsoft Employee
Do you mean that you want to show the Top N customers of current month and previous month in the same column chart as below?
If yes, we need to create two tables for current month and previous month, then union these two tables, and use the columns of the union table in a column chart.
CurrentMRank = SUMMARIZECOLUMNS ( Table1[Customer], "CurrentMTD", [CurrentMTD], "PreMTD", [PreMTD], "Rank", [Rank_CurrentMTD], "Type", "CurrentMonth" )PreMRank = SUMMARIZECOLUMNS ( Table1[Customer], "CurrentMTD", [CurrentMTD], "PreMTD", [PreMTD], "PreMRank", [Rank_PreMTD], "Type", "PreMonth" )Current&PreM = UNION ( CurrentMRank, PreMRank )
Best Regards,
Herbert
- shona9 years agoFrequent Visitor
Thanks v-haibl-msft!