Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

Dynamic Y axis based on multiple variables - Need Help!

Hi All,

 

I have a dataset with 6 columns - ID, X1, X2, Y1, Y2, Y3. X1 and X2 variables are categorical, having 3 and 5 categories respectively. Y1, Y2 and Y3 variables are continuous. Y1 and Y2 are ratio variables between 0% to 100%. Y3 denotes whole integer (>0).

I want to create a 'Line and Clustered Column Chart' where the Column chart will be based on Y3 and will be fixed, the line diagram will be based on Y1 and Y2 and needs to be dynamic, i.e. the user can change between Y1 and Y2 by using a slicer / dropdown. The X-axis also needs to be dynamic. I got the solution of dynamic X axis from other threads in this community, but could not find any post on how to make the Y axis dynamic as per the requirement.

Please help!

 

Regards,

Sagnik

  • Hi, Anonymous 

     

    Picture1:  I used the original table structure.

     

    Picture2: I unpivoted the original table structrue.

     

    unpivoting the original table structure gives the choice to select X1 or X2 by the slicer.

     

    the link to the sample pbix file is down below.

    https://www.dropbox.com/s/dzpzv8u879y02wh/ms%20power%20bi%20V2.pbix?dl=0 

     

    Hi, My name is Jihwan Kim.

    If this post helps, then please consider accept it as the solution to help other members find it faster.

     

9 Replies