Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
1 year ago
Solved

undefined

I am looking for the answers for this : Mdxscript(Model) (264,25) calculatiuon error in measure 'xyz'[outflow]:Function 'CONTAINSROW' doesnot support comparing values of type text with the values of ...
  • Joe_Barry's avatar
    Joe_Barry
    1 year ago

    Please try this

    Total = CALCULATE(ROUND(SUM('Table'[A]) + SUM('Table'[B]) + SUM('Table'[C])+ SUM('Table'[D]) + SUM('Table'[E]), 0))

    I'm not sure how your data is structured, but you van do this Power Query too if you chaning the table format isn't an issue.

    • Highlight all the columns that you want to sum
    • Right click and choose unpivot columns. You will be left with the columns that you didn't highlight and two new column. one showing the column names and another with teh amounts.
    • Load into the report
    • Adapt the measure above to just

      Total = CALCULATE(ROUND(SUM('Table'[Value]), 0))
  • Anonymous's avatar
    Anonymous
    1 year ago

    Thank you for the suggested solution .It worked partially .The main problem is it has some blank values which are not well treated .After replacing blank with zero it worked.