cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
dudasucx
Regular Visitor

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

1 ACCEPTED SOLUTION
CheenuSing
Community Champion
Community Champion

Hi @dudasucx 

 

Please check th link

Solved: Category Percentage of Row Total - Microsoft Power BI Community

 

Cheers


CheenuSing

 

Did I answer your question? Mark my post as a solution and also give KUDOS !

Proud to be a Datanaut!

View solution in original post

4 REPLIES 4
Ashish_Mathur
Super User
Super User

Hi,

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


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

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

CheenuSing
Community Champion
Community Champion

Hi @dudasucx 

 

Please check th link

Solved: Category Percentage of Row Total - Microsoft Power BI Community

 

Cheers


CheenuSing

 

Did I answer your question? Mark my post as a solution and also give KUDOS !

Proud to be a Datanaut!

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!!

Helpful resources

Announcements
June 2022 update 768X460.jpg

Check it out!

Click here to read more about the June 2022 updates!

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Power BI Dev Camp Session 23 768x460.jpg

Check it Out!

Mark your calendars and join us on Thursday, June 30 at 11a PDT for a great session with Ted Pattison!

June 20 episode 7 with aka link 768x460.jpg

The Power BI Community Show

Join us on June 20 at 11 am PDT when Kim Manis shares the latest on Azure Synapse analytics, the Microsoft Intelligent Data Platform, and notable Power BI Updates from Microsoft Build 2022.

Top Solution Authors