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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
espendl
Regular Visitor

DAX "SUMIFS" two criterias

Hi 

 

I am new to power pivot and power bi.

 

I want to make a calculated column that sum a column (same table) if two criterias are met - combination of two values in their respective columns.

 

All values are in the same table, however I also have two dimension tables if it helps. E.g. in the picture below.

 

The problem

 

Regards,

Espen

3 REPLIES 3
espendl
Regular Visitor

Hi 

 

I am new to power pivot and power bi.

 

I want to make a calculated column that sum a column (same table) if two criterias are met - combination of two values in their respective columns (Name (NameID) and Date)

 

All values are in the same table, however I also have two dimension tables if it helps. E.g. in the picture below.

 

The problemSkjermbilde 2018-04-13 kl. 18.37.44.png

 

Regards,

Espen (from Norway, sorry for the bad explanation

 

Hi,

 

Try these calculated column formulas

 

Col1=CALCULATE(SUM(Data[Numbers]),FILTER(Data,Data[Name]=EARLIER(Data[Name])&&Data[Date]=EARLIER(Data[Date])))

Col2=[Numbers]/[Col1]

 

Hope this helps.


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

Hi @espendl

 

Try this column

 

=
CALCULATE (
    SUM ( Table1[Numbers] ),
    ALLEXCEPT ( Table1, Table1[Name], Table1[Date] )
)

Helpful resources

Announcements
ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.