This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreLevel up your Power BI skills this month - build one visual each week and tell better stories with data! Get started
Greetings!
I am trying to transition an excel workboook with several types of calculations to Power BI. In particular, I am struggling with how to replicate a conditional SUMIFS calculation that uses structured references. The excel expression is: =SUMIFS([Column1],[Column2],[@Column2],[Column3],[@[Column3]])
In DAX, how can I sum the values of column 1 given specific row values in columns 2 and 3?
I realize that the DAX framework is based on table/column/row refernece and not cell references (like excel), but I'm not making the intellectual leap here. Any help would be appreciated!
Solved! Go to Solution.
@Unimatrix8472 you misplaced a parenthesus
allexcept('Raw Course Success Data - AY','Raw Course Success Data - AY'[Department], 'Raw Course Success Data - AY'[Year Term])
@Unimatrix8472 can you provide sample data and expected output?
Sure, here is a simplifed illustration.
Excel Expression:
Calculated Values =SUMIFS([Course Enrollment],[Department],[@Department],[Year Term],[@[Year Term]])
The expression calculates the enrollment sum across courses for a given department in a given year. I am trying to accomplish the same with DAX in Power BI.
Example: Department A in Fall 2021 saw a total enrollment of 550 students (200+300+50), whereas Department E in Spring 2020 saw a total enrollment of 151 (74+77).
Does this help?
@Unimatrix8472 try this measure
sumifEquivalent=calculate(sum(tbl[courseEnrollment]), allexcept(tbl,tbl[Department]),tbl[YearTerm]))
Here's the implementation of your suggestion with my actual DAX:
@Unimatrix8472 you misplaced a parenthesus
allexcept('Raw Course Success Data - AY','Raw Course Success Data - AY'[Department], 'Raw Course Success Data - AY'[Year Term])
Oops. Yes, this appears to have worked. Thank you very much!
Check out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 4 | |
| 4 | |
| 3 | |
| 3 | |
| 3 |
| User | Count |
|---|---|
| 9 | |
| 9 | |
| 8 | |
| 6 | |
| 6 |