Forum Discussion

diogobraga2's avatar
diogobraga2
Helper IV
6 years ago

Aligning records between two visualizations

What is the best way to align records from different visuals in Power BI? The pbix file is here

See the example below, there is a matrix and a 100% stacked bar visuals that needs to be aligned by school name, including when school names change when the Region filter is applied. 

 

 

 

8 Replies

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

    Hi, diogobraga2 

     

    Based on your description, I tried to open the link you provided but failed. So I created visuals based on some other sample data to reproduce the scenario.

    Firstly, you can click ‘Edit Query’, go to query Editor, choose ‘Add Column’, select ‘Index Column’, click ‘Close and Apply’.

    Secondly, In my example the target column is ‘ProductName’. You may select the target column, choose ‘Modeling’ , click ‘Sort by Column’, make ‘Index’ selected.

     

    Result:

    If I misunderstand your thought, please show me your sample data. I am glad to solve the problem for you.

     

    Best Regards,

    Allan

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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

        Hi, @diogobraga2 

         

        Thank you for providing your pbix file. However, I can't create index column in Query Editor because I have no access to datasource.

         

        It is easy to operate as my last reply. You may create an index column in Query Editor. Then you can make 'School Code' column selected. Finally, you may click 'Sort by Column' and select the 'Index' column in the 'Modeling' area.

         

        You can try to do it as above and tell me the reslut. Thanks.

         

        Best Regards
        Allan

  • PaulDBrown's avatar
    PaulDBrown
    Community Champion

    diogobraga2 

    It might be worth checking out the custom visuals offered by Zebra. They are pretty incredible and may have a solution to what you are after:

    Zebra Table Visuals 

     

    you can see a summary of the their new offering in the December PBI update video, starting at minute 22:40

     

    PBI December update