Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

Calculations in Appended table

Hi ! I have 3 exact same table i'm trying to analyze. (Actual / June forecast/ Budget). To do so I appended the 3 tables into 1 table. Now I'm trying to calculate differences between columns in an...
  • v-jingzhang's avatar
    4 years ago

    Hi Anonymous 

     

    It appears three times because it is in a matrix visual. In a matrix visual, the Values field will be evaluated for every pair of column and row. From the screenshot, there are Act-Fcst, JQF22 and JRF22 column values, so it is evaluted for all of them. 

     

    I guess your purpose is to calculate the difference between the current value and the respective JRF, right? If so, you can try this measure

    Diff vs JRF = SUM('Table (2)'[Value]) - CALCULATE(SUM('Table (2)'[Value]),ALLSELECTED('Table (2)'[Version]),'Table (2)'[Version]="JRF22")

     

    Similarly

    Diff vs Budget = SUM('Table (2)'[Value]) - CALCULATE(SUM('Table (2)'[Value]),ALLSELECTED('Table (2)'[Version]),'Table (2)'[Version]="Budget")

     

    Best Regards,
    Community Support Team _ Jing
    If this post helps, please Accept it as Solution to help other members find it.