Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

Adding 2 measures into one measure

Hi Everyone,   I have 2 measures Actual & Projected . Actual from Table A & Projected is from Table B. Table A have data till today, Table B have values till end of the month. My requirement is ...
  • amitchandak's avatar
    5 years ago

    @Sriram_K, one way is that you put them together so you won't get line of points for the target

    Cumm ? CALCULATE(SUM(Table1[Amount]) + SUM(Table2[forecast]),filter(allselected(date),date[date] <-maxx(date,date[date])))

    O
    Cumm : CALCULATE(SUM(Table1[Amount]) + SUM(Table2[forecast]),filter(allselected(date),date[date] <-max(Sales[Sales Date])))

    another way put them as a separate measure

    Cumm AmountTM CALCULATE(SUM(Table1[Amount]) ,filter(allselected(date),date[date] <-maxx(date,date[date])))

    Cumm forecastTM CALCULATE( SUM(Table2[forecast]),filter(allselected(date),date[date] <-maxx(date,date[date])))