Forum Discussion

PowerBITestingG's avatar
PowerBITestingG
Resolver I
3 years ago
Solved

Iterate through a measure

I have been looking around the forum to find the answer but no luck yet   I have this table Country Condition Quantity (measure) Wanted measure France 1 5 15 Italy 0 2 15 Sp...
  • Greg_Deckler's avatar
    3 years ago

    PowerBITestingG I would think:

    Wanted measure =
      VAR __Table = SUMMARIZE(ALLSELECTED('Table'),[Country],[Condition],"Quantity",[Quantity])
    RETURN
      SUMX(FILTER(__Table,[Condition] = 1),[Quantity])