Forum Discussion
dax query
Hi Community team,
I need you help on build dax query for second largest retail channel on total sales
I am sharing the code for first largest retail channel on total sales
Please check the code and modify for second largest retail channel on total occasions
Based on your description, I created data to reproduce your scenario. The pbix file is attached in the end.
https://1drv.ms/u/s!AiUZ0Ws7G26RihMKgrmog1QqoECj?e=OQNfR6
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
9 Replies
- AhmedxSuper User
Share sample pbix file to help you.
- Arjun_reddyHelper I
Hi Ahmedx,
I am unable to add power bi and excel file, please find the below attachment.
Thanks,
Arjun Reddy.
- Arjun_reddyHelper I
Please find the below data table
category year sales chairs 2021 5000 tables 2021 6000 bulbs 2022 6000 sofa 2022 4500 chairs 2022 8000 chairs 2021 6000 chairs 2021 2800 sofa 2022 4700 bulbs 2022 2000 sofa 2021 5500 tables 2021 6000 tables 2022 3400 bulbs 2021 4000 - AhmedxSuper User
you can show what result you expect
- AhmedxSuper User
Based on your description, I created data to reproduce your scenario. The pbix file is attached in the end.
https://1drv.ms/u/s!AiUZ0Ws7G26RihMKgrmog1QqoECj?e=OQNfR6
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.