Forum Discussion

BInewbie's avatar
BInewbie
Frequent Visitor
8 years ago

Create dynamic X asix

Hi All,

 

I am trying to create a dynamic X axis where by the user should be able to select the variable they want to see on the X axis, with the Y axis fixed to Sales, e.g. Sales by Country, Sales by Person, Sales by Store etc.

 

The data is all contained in the same table.

 

I understand I can do this through a 'no dax' method by unpivoting the table for all my chosen vairables, however given my data has 10m+ rows, i dont think this will be feasible.

 

Any advice would be greatly appreciated.

11 Replies

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

    Hi@ BInewbie

    You may try to use Drill mode in a visualization in Power BI

    Step 1:

    Drag Country , Person , Store into Axis together and sales into Value.

    Step 2:

    Use Drill mode

    Result:

    Best Regards,

    Lin

    • BInewbie's avatar
      BInewbie
      Frequent Visitor
      Yes this is a possible work around, however if I have 10 dimensions, I require 10 buttons which will take up a lot of space. Having these in a slicer would be more ideal.
      • Anonymous's avatar
        Anonymous
        Not applicable

        BInewbie

         

        I think what you want to do is create dynamic measures 

         

        sales by store

        sales by dimen 2

        sales by dimen 3

        sales by dimen 6

        sales by dimen 4

        sales by dimen 5

         

        use the below video to do it, https://www.youtube.com/watch?v=gYbGNeYD4OY.

         

        if you need more clarification after watching the video, please lemme know where you are getting stuck and also post your power bi file