Forum Discussion

HarishRathore's avatar
HarishRathore
Helper II
6 years ago
Solved

Dynamic Classification with two criteria

Hi, I want to classify towns based on their volume in different segment. Following is the example dataset: Town Name Brand Name Category Segment Volume Jaipur ABC Shampoo Deluxe Shampo...
  • HarishRathore's avatar
    6 years ago

    Hi az38 , Thanks for your effort. The criteria to classify towns is as follows ;

     

    1. we are applying 80/20 formula here in segments, so when we are cumulating volume contribution% then top 80% ( in descending order) data will look like this 
    2. so segment will always be in slicer. you can see that i have sorted data in descending order to get top % volume contributed towns. now we need to classify towns as per below criteria :
      1. If volume contribution is till 80% and market share of "My Company" in the town is >= "My Company's Total Share" in the segment then "Stronghold"
      2. If volume contribution is till 80% and market share of "My Company" in the town is < "My Company's Total Share" in the segment then "Headroom"
      3. If volume contribution is till remaining 20% and market share of "My Company" in the town is >= "My Company's Total Share" in the segment then "Emerging"
      4. If volume contribution is till remaining 20% and market share of "My Company" in the town is < "My Company's Total Share" in the segment then "Small"
    3. its like 0% to 80% then 81% to 100% (since we have already sorted data in top to bottom). I want to approach this by using "DESC" formula so that it would always be dynamic whenever i am selecting any other segment. I have 15 million rows data hence request for dynamic measures.
    4. I have tried my best to explain the situation. Sorry for any bad grammer or spelling mistake.

    Regards

    Harish

    P.S. - I tried to use your link but it not working. Also in my excel link there a sheet called "Criteria". you can also go through there.

  • Ashish_Mathur's avatar
    Ashish_Mathur
    6 years ago

    Hi,

    You may download my Excel solution workbook from here.  I have written DAX measures to solve the problem.  This can very easily be imported into PowerBI Desktop but before you do so, please check the results thoroughly.

    Hope this helps.

  • Ashish_Mathur's avatar
    Ashish_Mathur
    6 years ago

    Hi,

    You may refer to my solution here.

    Hope this helps.