Forum Discussion

chyang0107's avatar
chyang0107
Helper I
1 year ago
Solved

Table/Matrix visualization to show current and previous value

Hello,

 

Thanks for your time in advance. I wonder if you could provide your insights on how to make a visualization by putting two values (Total and Last Quarter) side by side (expected visualization below) using the data source(top). 

 

Thanks,

Hank

 

Data source (SQL database)

Project NameProject IDTotalPayment Payment_LastQuarterTotalExpenseExpense_LastQuarter
ABC1100806040

 

Expected visualization(either Table or Matrix)

Column NameTotal ValueValue_LastQuarter
Project NameABC 
Project ID1 
Payment10080
Expense6040
  • Hello, 
    Following is the soluition i created for you :

     

    here is the pbix file for your reference: Chyang0107 _sol_jpss.pbix

     

    if you find this helpful, Please consider marking it as a solution.

  • Hi chyang0107  Your expected result is not usable when there is other projects. For example, if you have other project name, DEF and all the other attributes, then how would you visualize them. For one row table as you have provided data, it is possible using power query and matrix visual. See image:

     

     

    But I think your table have many rows with many different projects. Then solution provided by Jpss  is useful by switching values to rows in matrix visual "value option".

    Hope this helps!!

     

    Best Regards,
    Shahariar Hafiz

     

4 Replies

  • Jpss's avatar
    Jpss
    Resolver II

    Hello, 
    Following is the soluition i created for you :

     

    here is the pbix file for your reference: Chyang0107 _sol_jpss.pbix

     

    if you find this helpful, Please consider marking it as a solution.

  • Hi chyang0107  Your expected result is not usable when there is other projects. For example, if you have other project name, DEF and all the other attributes, then how would you visualize them. For one row table as you have provided data, it is possible using power query and matrix visual. See image:

     

     

    But I think your table have many rows with many different projects. Then solution provided by Jpss  is useful by switching values to rows in matrix visual "value option".

    Hope this helps!!

     

    Best Regards,
    Shahariar Hafiz

     

    • chyang0107's avatar
      chyang0107
      Helper I

      Hello Shahariar,

       

      Thanks for the insights. You are correct the table contains multiple rows and a dropdown menu was set up for the user to select the project of interest.

       

      Thanks,

      Hank