Forum Discussion

vijeth_sankethi's avatar
vijeth_sankethi
Frequent Visitor
8 years ago
Solved

Difference between 2 Cell values in a Matrix

Hi All, 

 

I am trying to achieve this simple feature in Power BI but due to my limited knowledge in Power BI, I am not able to achieve this. 

 

I have the following data. 

 

 Jun-17Jul-17Aug-17Sep-17Oct-17Nov-17Dec-17Jan-18Feb-18Mar-18Apr-18May-18Jun-18
Estimated Submissions 100104108112116120124128132136140144148
Estimated Applications50545760636669727578818487
Estimated Fundings10131619222528313437404346
              
Actual Submissions50515253545556575859606162
Actual Applications20212223242526272829303132
Actual Fundings10111213141516171819202122

 

Now I just want to add a new row below which just performs Actual Submissions - Estimated Submissions, Actual Applications - Estimated Applications and so on as mentioned below. 

 

Deviation Submissions-50-53-56-59-62-65-68-71-74-77-80-83-86
Deviation Applications-30-33-35-37-39-41-43-45-47-49-51-53-55
Deviation Fundings0-2-4-6-8-10-12-14-16-18-20-22-24

 

Can anyone give me some pointers as to how to achieve this?

 

Thanks,

Vijeth

  • Hi vijeth_sankethi,

     

    I entered some data to do a test. Based on my test, you can refer to below steps in query editor:
    This picture show the data I entered.

     

    1.Pivot your [column3],choose the Values Column [Column2].

     

    2.Add the three Custom Columns to show your data.
    Deviation Submission=[Actual Submissions]-[Estimated Submissions]
    Deviation Application=[Actual Applications]-[Estimated Applications]
    Deviation Fundings=[Actual Fundings]-[Estimated Fundings]


    3. Unpivot all of your columns except the [Column1].

     

    4.Create a Matrix visual to show your data.

     

     

    For more information, see attached pbix file. 

     

    Best Regards,
    Qiuyun Yu

2 Replies

  • v-qiuyu-msft's avatar
    v-qiuyu-msft
    Community Support

    Hi vijeth_sankethi,

     

    I entered some data to do a test. Based on my test, you can refer to below steps in query editor:
    This picture show the data I entered.

     

    1.Pivot your [column3],choose the Values Column [Column2].

     

    2.Add the three Custom Columns to show your data.
    Deviation Submission=[Actual Submissions]-[Estimated Submissions]
    Deviation Application=[Actual Applications]-[Estimated Applications]
    Deviation Fundings=[Actual Fundings]-[Estimated Fundings]


    3. Unpivot all of your columns except the [Column1].

     

    4.Create a Matrix visual to show your data.

     

     

    For more information, see attached pbix file. 

     

    Best Regards,
    Qiuyun Yu

    • vijeth_sankethi's avatar
      vijeth_sankethi
      Frequent Visitor

      Hi v-qiuyu-msft

       

      I was trying something on the similar lines. Thanks for putting a lot of effort to get this resolved. I will accept this solution. 

       

      Thanks,

      Vijeth