Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

Row Total By two Categories

Hello I have a dataser similar to:

 

 East West Total 
CLIENT 1130 150 280% of Total
Current12016%13916%25916%
Past Due101%121%221%
CLIENT 2108 125 233 
Current10013%11613%21613%
Past Due81%91%171%
CLIENT 358 67 125 
Current507%587%1087%
Past Due81%91%171%
CLIENT 4455 526 981 
Current45060%52060%97060%
Past Due51%61%111%
       
TOTAL751100%868100%1619

100%

 

 

 

As you can see when I add the column Sales Again, and then format it to show as total of column, it gives me the percentage of the whole Division East, West. Not for each client.

 

What I need to have is:

 East West Total 
CLIENT 1130 150 280% of Total
Current12092%13992%25992%
Past Due108%128%228%
CLIENT 2108 125 233 
Current10093%11693%21693%
Past Due87%97%177%
CLIENT 358 67 125 
Current5086%5886%10886%
Past Due814%914%1714%
CLIENT 4455 526 981 
Current45099%52099%97099%
Past Due51%61%111%

I tried doing a formula like this: 

Total Per Client = CALCULATE(SUM('Clientes'[Invoices]),ALLEXCEPT('Clientes','Clientes'[CLIENT]))
 
But this formula gives me a table like this:
 EastWestTotal
CLIENT 1280280280
Current280280280
Past Due280280280
CLIENT 2233233233
Current233233233
Past Due233233233
CLIENT 3125125125
Current125125125
Past Due125125125
CLIENT 4981981981
Current981981981
Past Due981981981

 

The question is:

 

How can I make a Total By Client and By region, So then I can make a Divide of the total by this new measure to obtain the % of each client by region.

 

Thanks in advance

4 Replies

    • Anonymous's avatar
      Anonymous
      Not applicable

      I0ve already seen that post of yours, and tried it, but I was assigning a wrong variable to the AllExcept. Seeing it again gave me new light!! Thanks KUDOS!!

  • Hi,

    Are Current and Past Due measures?  Share the link from where i can download your PBI file.

    • Anonymous's avatar
      Anonymous
      Not applicable

      There is only one measure, there is no time intelligence involved here. I wll create a sample file to share.