Forum Discussion

kosser32's avatar
kosser32
Frequent Visitor
8 years ago
Solved

Maintaining Totals on Filtered columns

I am trying to run a percentage of total on a filtered drill down list. So on a column labeled 'Items' I would like a column next to it that is the percentage of the Total number of Items in all rows. Example below is filtered from 50 company names with Total number of Items of 400

 

Company Name          Items          %Items

aaaaa                            4                  1

bbbb                             8                  2

fffff                                40               10

zzzzz                              80               20

Total                              132

  • It should be something along the lines of:

     

    Measure = SUM([Items])/CALCULATE(SUM([Items]),ALL(Table))
  • Hi kosser32,

    The measure to get percentage Greg_Deckler posted is right after check. Please mark the right reply as answer, so more people can get helpful information clearly. Welcome to share sample table and list expected result you have other issue, so that we can help you in details.

    Thanks,
    Angelia

2 Replies

  • Greg_Deckler's avatar
    Greg_Deckler
    Icon for Community Champion rankCommunity Champion

    It should be something along the lines of:

     

    Measure = SUM([Items])/CALCULATE(SUM([Items]),ALL(Table))
  • v-huizhn-msft's avatar
    v-huizhn-msft
    Icon for Microsoft Employee rankMicrosoft Employee

    Hi kosser32,

    The measure to get percentage Greg_Deckler posted is right after check. Please mark the right reply as answer, so more people can get helpful information clearly. Welcome to share sample table and list expected result you have other issue, so that we can help you in details.

    Thanks,
    Angelia