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

Try your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join now

Reply
Bennes
Frequent Visitor

SUMIF cartesian(?) problem

Hello,

 

I am quite new in powerBI so I am sorry if this is noob question.

I need to visualize sum number of whole projects portfolio, I am using SUM CALCULATE with FILTER criterias, however, when there are more invoice in certain month, SUM number is getting multiplied. I think it`s getting cartesian.

 

This is formula:

 

Portfolio =
var PM1='POHODA EXPORT'[PMs.PM]
var month1 =MONTH('POHODA EXPORT'[1.MM.YYYY])
var year1 = YEAR('POHODA EXPORT'[1.MM.YYYY])
return CALCULATE(SUM('POHODA EXPORT'[Amount]);FILTER('POHODA EXPORT';'POHODA EXPORT'[PMs.PM] = PM1 && MONTH('POHODA EXPORT'[1.MM.YYYY])= month1 && YEAR('POHODA EXPORT'[1.MM.YYYY])=year1))
 
 
I ma filtering portfolio based on YEAR, MONTH of invoice and Project manager.
 
I need the sum for certain month and certain project manager from list of invoices.
 
There can be 1 and more invoices per month.
 
For 1 invoice in 1 month, the formula works well. But with more invoices, number is getting multiplied by number of invoices.
 
What could be the solution for this problem? Is there any way how to group by in powerBI, or what would be the best please?
 
 
Thanks
 
0 REPLIES 0

Helpful resources

Announcements
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.