Forum Discussion

jenneferparr's avatar
jenneferparr
Icon for Helper I rankHelper I
6 years ago
Solved

Custom Column with UseRelationship and If statement

Been using PowerBI successfully for a while now but am finding that DAX is my nemesis. I need to create a custom column that calculates a value from columns in two different tables with an inactive r...
  • Anonymous's avatar
    Anonymous
    6 years ago

    HI jenneferparr,

    It seems like you put Dax function and if statement usage into M query formulas that cause the issue.
    M query is good at data structure shaping and conversations, I'd like to suggest you do these row contents calculations in Dax formula. (Notice: M query is case-sensitive, 'if' statement keyword should use 'lower' characters without '()' and it also not existed sum functions)

    What's the difference between DAX and Power Query (or M)? 

    If you confused about coding formula, please share some dummy data with a similar data structure to test.

    How to Get Your Question Answered Quickly 

    Regards,

    Xiaoxin Sheng