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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
nbrandborg
Helper II
Helper II

New Column, like SUMIFS with multiple matching columns

Hi all,

I really struggle to make a needed SUM column which is based on multiple criterias one of them being a Date/Month-column.
My dataset looks like this:

nbrandborg_0-1659009123363.png

 

 

The two yellow marked columns are criterias it needs to match together, the Blue one has to be equal to "P" and Green is what it needs to SUM ultimately in the column I have on the far right.

I hope it makes sense?

Best regards!

1 ACCEPTED SOLUTION
Anonymous
Not applicable

@nbrandborg So basically you want to calculate the SUM(REUnits) by month year for each country where companysalesrating = "P"

 

You can use the below Query to create a calculated column

CALCULATE(SUM(REUnits), FILTER(ALLEXCEPT(TABLE, TABLE[MONTH YEAR], TABLE[COUNTRY],TABLE[ComanySalesRating]), TABLE[CompanySalesrating] = "P"))

 

let me know if that helps.

 

 

View solution in original post

2 REPLIES 2
nbrandborg
Helper II
Helper II

Thanks! It worked like intended!

Anonymous
Not applicable

@nbrandborg So basically you want to calculate the SUM(REUnits) by month year for each country where companysalesrating = "P"

 

You can use the below Query to create a calculated column

CALCULATE(SUM(REUnits), FILTER(ALLEXCEPT(TABLE, TABLE[MONTH YEAR], TABLE[COUNTRY],TABLE[ComanySalesRating]), TABLE[CompanySalesrating] = "P"))

 

let me know if that helps.

 

 

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

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.