Forum Discussion

shei7141's avatar
shei7141
Helper III
5 years ago
Solved

Dax multiple conditional sum

Hi guys,   I have a table which looks like this: Store Phases Estimated cost J&J A 1 J&J B   J&J C 2 J&J D 3 TimLee A 5 TimLee B 3 TimLee C   TimLee D ...
  • AllisonKennedy's avatar
    AllisonKennedy
    5 years ago
    Yes, a MEASURE does not have the row context of the table. You can try two options:

    Option A:
    Use SUMX(Table, IF( insert your formula here)

    Option B:
    Use the SELECTEDVALUE function around any column you want to reference. This will only return a value if there is 1 value for the selected column, so requires a specific table configuration.

    I prefer Option A in this case.