Forum Discussion
Unimatrix8472
4 years agoNew Member
Excel to DAX: converting SUMIFS structured references ([column1],[@[column1])
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...
- 4 years ago
Unimatrix8472 you misplaced a parenthesus
allexcept('Raw Course Success Data - AY','Raw Course Success Data - AY'[Department], 'Raw Course Success Data - AY'[Year Term])
smpa01
Community Champion
4 years agoUnimatrix8472 try this measure
sumifEquivalent=calculate(sum(tbl[courseEnrollment]), allexcept(tbl,tbl[Department]),tbl[YearTerm]))
Unimatrix8472
4 years agoNew Member
Here's the implementation of your suggestion with my actual DAX:
Dept Enrl Per AY = calculate(sum('Raw Course Success Data - AY'[Course Enrollment]), allexcept('Raw Course Success Data - AY','Raw Course Success Data - AY'[Department]),'Raw Course Success Data - AY'[Year Term])
The following error occured: Cannot covert 'Summer 2016' of type Text to type True/False.
Summer 2016 is a [Year Term] value, like Fall 2021 or Spring 2020 in the example I provided in my previous reply.
Suggestions?
- smpa014 years ago
Community Champion
Unimatrix8472 you misplaced a parenthesus
allexcept('Raw Course Success Data - AY','Raw Course Success Data - AY'[Department], 'Raw Course Success Data - AY'[Year Term])
- Unimatrix84724 years agoNew Member
Oops. Yes, this appears to have worked. Thank you very much!