+ Reply to Thread
Results 1 to 2 of 2

Display percent of rank (donut chart) based on category and sub-category

  1. #1
    Forum Contributor
    Join Date
    10-02-2012
    Location
    india
    MS-Off Ver
    Excel 2010
    Posts
    165

    Display percent of rank (donut chart) based on category and sub-category

    Hi All,
    I have master table where all employee are ranking to different physical fitness (like Exercise, Diet, Running etc.). with rank=1 as very low and 5 as very high.

    My requirement is that I need to calculate percentage of rank based on category and sub-category. As the data are not present is proper order, I am not able to proceed it. How can I do it. can you please help me.

    The category and sub-category will be assigned like below

    Variable Category subcategory
    Exercise Fitness1 Fit1
    Diet Fitness1 Fit1
    Running Fitness1 Fit2
    jogging Fitness2 fit1
    playing Fitness2 fit4
    swimming Fitness3 fit1
    riding Fitness3 fit1
    dancing Fitness3 fit1
    sleeping Fitness3 Fit5

    Attaching sheet for your reference
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,428

    Re: Display percent of rank (donut chart) based on category and sub-category

    If you can utilize Power Query (a free add-in from Microsoft for the 2010 version of Excel) then you could put the data in proper order using the following advanced editor code:
    Please Login or Register  to view this content.
    After producing the Power Query table, convert the category/subcategory range into a table and load both into Power Pivot data model.
    Connect the two tables using the Variable field.
    As modeled in the attached file, produce a pivot table using the Category from the category/subcategory table and Rank from the Power Query table.
    The doughnut chart is then produced from the filtered (by category) pivot table.
    Let us know if you have any questions.
    Attached Files Attached Files
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Chart - Category Label Disappears if the 1st Category not chosen
    By RebeccaD747 in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 03-04-2019, 11:52 PM
  2. How to Chart values for Division vs Category and Sub-Category?
    By rahulgk in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 06-11-2013, 06:33 AM
  3. Replies: 2
    Last Post: 09-14-2012, 04:31 AM
  4. Sum numbers based on a category of a category
    By mattjac in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-09-2012, 11:08 PM
  5. [SOLVED] Productsum: Highest Frequency Category, Specific Main Category, Frequency of Category
    By T86157 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-24-2012, 12:43 PM
  6. How to create rank string based on 'category' + 'price' column?
    By amateurmetheus in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-18-2010, 06:42 PM
  7. Rank() based on category
    By Henrik in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-12-2005, 08:47 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1