Am looking for logic where I need to calculate the Max Sales of the product in the current month, which I have able to get it, but when I map Channels in the Table the values are incorrect for the channels because of Filter Context, the channel values should be segregation of Total Maxvalue(561118) that is Pivot image attached. Practise_Data.pbix (365.4 KB)
Thank you for the Input but the solution is not working in my Table,
Let me Re-Iterate my query…
I need to find out the Max sales of the product in a month wise, which I was able to figure out Example in August(2019) month - 561118 which came from “Product 7”.
Now I got the Max sales I need to find out how this max sales is divided among channel like you see in pivot image I was able to generate it but not in PBI Table.
Hello @Dharma, it’s been a while since we got a response from you. In case there won’t be any activity on it in the next few days, we’ll be tagging this post as Solved.
You may try with the following measures… it is working out. I am attaching your pbix file with my workins :
Total Sales = SUM(Sales[Total Revenue])
RankXAllSelected = RANKX(ALLSELECTED(Products[Product Name]),[Total Sales])
Apply this RankXAllSelected in filter panel : is 1
Once it is done, you will get the top product as well as channel wise distribution as well.