Forum Discussion

BMltc's avatar
BMltc
Icon for Helper II rankHelper II
5 years ago
Solved

Table with subtotal (basis 100)

Hi everyone,

 

I have a dataset like this:

I would like to create a table or a matrix in order to have the score of each category (as if the sum of each name within them is 100%) like this:

with the score of the category 1 is 7.2 = 5*30%/(30%+35%) + 9*35%/(30%+35%)

 

any idea?

 

many thanks

 

Boris

  • BMltc , if this option can work, you do not need additional measures. This will show subtotal too as you have more than one column in the row. 

     

     

3 Replies

  • BMltc , In a matrix you can right on the measure in visual pane and use % of total or % of sub total

     

     

    or try measures like

     


    Percent of sub Toal = divide([score], calculate([score], allselected(Table, Table[categorty] =max(Table[category]))))

     

     

    Percent of Toal = divide([score], calculate([score], allselected(Table)))

     

  • thanks amitchandak , so I need to create an additionnal column just for the score of each subgroup?

    • amitchandak's avatar
      amitchandak
      Icon for Super User rankSuper User

      BMltc , if this option can work, you do not need additional measures. This will show subtotal too as you have more than one column in the row.