Forum Discussion

rschaudhr's avatar
rschaudhr
Resolver II
4 years ago
Solved

matrix visualization correlation plot

I am trying to create the following visual

 

However, when I am using matrix visualization I get the following:

 

 

Does someone have any suggestions.

 

Thanks!

The raw data is shown below:

 

 

Fact_1Fact_2Sum of VALUE_
CMCM1
DirectDirect1
fundfund1
DMDM1
QRQR1
GEGE1
HFHF1
ilsils1
mktmkt1
debtdebt1
HFmkt0.82
fundmkt0.74
QRmkt0.71
ilsmkt0.68
HFils0.67
HFQR0.66
QRCM0.61
CMmkt0.61
DMmkt0.59
HFCM0.58
HFfund0.57
QRils0.57
CMils0.54
fundils0.53
Directmkt0.53
HFDM0.5
DMQR0.48
fundQR0.47
fundCM0.44
Directils0.43
GEmkt0.42
Directfund0.38
fundDM0.37
DirectCM0.35
DMCM0.33
DirectQR0.32
HFDirect0.3
DMils0.26
HFGE0.13
GEils0.11
GEDM0.08
GEDirect0.07
DirectDM0.04
QRdebt0.04
GECM0.03
GEQR0.03
HFdebt0.02
CMdebt0.01
ilsdebt0
DMdebt0
GEfund0
Directdebt0
debtmkt0
funddebt-0.01
GEdebt-0.03
  • rschaudhr also to make sure matrix visual is also sorted correctly:

     

     

    Follow us on LinkedIn

     

    Check my latest blog post The Power of Using Calculation Groups with Inactive Relationships (Part 1) (perytus.com) I would  Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos to whoever helped to solve your problem. It is a token of appreciation!

     

    Visit us at https://perytus.com, your one-stop-shop for Power BI-related projects/training/consultancy.

     

  • rschaudhr not sure what to say, you have the pbix file and the steps you outlined seem to be the correct one, make sure you have used sort by for your column and picked the correct sort column.

     

     

  • Hi rschaudhr,

     

    As a side note, did you apply fact1_sort and fact2_sort to fact_1 and fact_2 respectively?

     

     

    If you still have some question, please don't hesitate to let me known.‌‌

     

    Best Regards,

    Link

     

    Is that the answer you're looking for? If this post helps, then please consider Accept it as the solution. Really appreciate!

  • rschaudhr's avatar
    rschaudhr
    4 years ago

    v-xulin-mstf  and parry2k ,

     

    Yes, I had applied sort order properly and it did not work.

     

    However, I found the missing step and that is at the time you create fact_1_sort and fact_2_sort in the transform section. You have to do the group by to create the sort order. I actually added a column in transformation with sort order. The group by is the critical step for this visual. Once it was applied, it worked a like a charm. 

     

    I will accept this as a solution.

     

    Thank you 

     

7 Replies

  • rschaudhr solution attached, change as you see fit.

     

     

    Follow us on LinkedIn

     

    Check my latest blog post The Power of Using Calculation Groups with Inactive Relationships (Part 1) (perytus.com) I would  Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos to whoever helped to solve your problem. It is a token of appreciation!

     

    Visit us at https://perytus.com, your one-stop-shop for Power BI-related projects/training/consultancy.

     

    • rschaudhr's avatar
      rschaudhr
      Resolver II

      parry2k ,

      Thank you for the solution.

       

      I am still have an issue getting the visual in the format show above. I followed through your steps.

       

      First create two columns for sort in Transform Data. One is called Tabe Fact 1 and the other one is called Table Fact 2. Create a sort order is opposite direction. So, HF is sort order of 10 in Table Fact 1 and it will be sort order of 1 in Table Fact 2.

       

      Second step is to merge Fact 1 and Fact 2 to the Table and only bring back sort order for each of Table Fact. 

       

      Third step is set sort by column. So, for Fact_2 will be sort order by Fact2 Sort and Fact_1 will be sort order by Fact1 Sort.

       

      Forth step is to create the matrix visual. with Fact_1, Fact_2 and Values. 

       

      Is there any other steps that needed to be taken? 

  • rschaudhr also to make sure matrix visual is also sorted correctly:

     

     

    Follow us on LinkedIn

     

    Check my latest blog post The Power of Using Calculation Groups with Inactive Relationships (Part 1) (perytus.com) I would  Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos to whoever helped to solve your problem. It is a token of appreciation!

     

    Visit us at https://perytus.com, your one-stop-shop for Power BI-related projects/training/consultancy.

     

    • rschaudhr's avatar
      rschaudhr
      Resolver II

      parry2k , sorry to mention that I did the sort in the visual and it still does not give me the results. 

       

  • rschaudhr not sure what to say, you have the pbix file and the steps you outlined seem to be the correct one, make sure you have used sort by for your column and picked the correct sort column.

     

     

  • v-xulin-mstf's avatar
    v-xulin-mstf
    Community Support

    Hi rschaudhr,

     

    As a side note, did you apply fact1_sort and fact2_sort to fact_1 and fact_2 respectively?

     

     

    If you still have some question, please don't hesitate to let me known.‌‌

     

    Best Regards,

    Link

     

    Is that the answer you're looking for? If this post helps, then please consider Accept it as the solution. Really appreciate!

    • rschaudhr's avatar
      rschaudhr
      Resolver II

      v-xulin-mstf  and parry2k ,

       

      Yes, I had applied sort order properly and it did not work.

       

      However, I found the missing step and that is at the time you create fact_1_sort and fact_2_sort in the transform section. You have to do the group by to create the sort order. I actually added a column in transformation with sort order. The group by is the critical step for this visual. Once it was applied, it worked a like a charm. 

       

      I will accept this as a solution.

       

      Thank you