Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
sconconi
Frequent Visitor

How to get Totals per month

Hi all! 

I have the table "C&R BI" with the total of invoices done in each month and I want to add a column to obtain the percentage of Credit & Rebills done per month by my team, which I have in another table. So, basically, I need to divide the total of C&R done per Total of invoices. Problem is that I don't have the total per month of C&R done. 

 

In table "C&R BI" I have the total invoiced per month, with the following columns, as an example: 

Month/Year    | Total invoiced

January 2018  |  300000

 

In another table, named "C&R Report", I have a list for each C&R done with the month in each line. It would be as follow:

Month/Year    |   Count        

January 2018  |       1*

*The "1" represents that it's a C&R, which will help with the SUM.

 

I have also a Date dimension table. 

 

How can I add a column to do that calculation? Get the total of C&R per month and divide it per Total invoiced

 

My Excel mind thought in a SUMIF, but I found that it's not available in PowerBI (or I don't know how it's the code). 

 

Thanks for your help!

1 ACCEPTED SOLUTION

Hi, thanks for your reply and sorry for the delay, I was very busy at work 😞

 

I was able to solve it with the below formula that I'd found on another site: 

 

CALCULATE(SUM('Table1'[Sheet1]),ALLEXCEPT('TAble2','TAble2'[Date]))
 
It didn't work out before because I didn't have the tables linked, once I did that, the formula worked.
 
Now I have another problem, since my supervisor asked me to modify it Smiley Sad
 
Should I explain it here or should I open another topic?
 
Thanks in advance!

View solution in original post

3 REPLIES 3
Nathaniel_C
Super User
Super User

@sconconi ,

Can you show us your model? Are these two tables linked? To which table are you adding the column?

Thanks,

 

If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos are nice too.
Nathaniel





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Hi, thanks for your reply and sorry for the delay, I was very busy at work 😞

 

I was able to solve it with the below formula that I'd found on another site: 

 

CALCULATE(SUM('Table1'[Sheet1]),ALLEXCEPT('TAble2','TAble2'[Date]))
 
It didn't work out before because I didn't have the tables linked, once I did that, the formula worked.
 
Now I have another problem, since my supervisor asked me to modify it Smiley Sad
 
Should I explain it here or should I open another topic?
 
Thanks in advance!

Hi @sconconi , I would start a new post. Nathaniel





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors