Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago
Solved

If Statement giving me a error message- please help

Hi, I am getting below error A single value for column 'DIRECTION' in table 'Data' cannot be determined. This can happen when a measure formula refers to a column that contains many values without ...
  • Anonymous's avatar
    Anonymous
    7 years ago

    Hi,

    I am using the below DAX xpression:

    Partner Count =
    var InboundPartnerCount = CALCULATE(DISTINCTCOUNT(Test[GS_SENDER_ID]), Test[Direction] = "I")
    var OutboundPartnerCount = CALCULATE(DISTINCTCOUNT(Test[GS_RECEIVER_ID]), Test[Direction] = "O")
    return IF(MIN('Test'[Direction]) = "I", InboundPartnerCount, OutboundPartnerCount)

     

    and getting the correct result and thank you very much for your interest for my problem.

     

    Thanks,

    Sandip Ghosh