Power BI - Dynamic Axis via Slicer (No DAX)

Поділитися
Вставка
  • Опубліковано 30 лип 2018
  • In this video, I show you how to dynamically switch your X-Axis via a slicer selection!
    Enroll in my introductory or advanced Power BI courses:
    training.bielite.com/
    Elite Power BI Consulting:
    bielite.com/
    Data Insights Tools:
    www.impktful.com/
    TinyLizard Blog Post:
    tinylizard.com/dynamically-cha...
  • Наука та технологія

КОМЕНТАРІ • 108

  • @jackbradshaw8992
    @jackbradshaw8992 2 роки тому +1

    Really, really helpful video. Dynamic legend/axis selection is an important function and the method for achieving this in Power BI was so wonderfully explained in this video. This is genuinely one of the best Power BI videos on UA-cam.

  • @srinathradhakrishnan8287
    @srinathradhakrishnan8287 3 роки тому

    100% agree with Amr Ibrahim - I was almost on the verge of giving up achieving this and then I stumbled upon this video. Many thanks to you!

  • @abhishekstatus_7
    @abhishekstatus_7 3 роки тому

    I am coming here after two years , Thanks a lot Parker for this without writing DAX You just saved my day as I was trying to do with Dynamic M query and it was not possible when I got to know that we cannot work with the Dynamic M query if the data set is connected with Excel based or Access based or may be sharepoint connection , This is really helpful! Thanks a lot :)

  • @jessicamewald
    @jessicamewald 4 роки тому +1

    This video alone is probably going to get me a raise when I make a report for my work. Thank you sooooo much this was fantastic. I've watched a few videos and I love the way you explain things. I will be subscribing and look forward to learning more. Thank you for taking the time to make these.

    • @BIElite
      @BIElite  4 роки тому +1

      Hahaha that's great to hear! Thanks for the sub :)

  • @neelammishra5622
    @neelammishra5622 2 роки тому

    I am so thankful to you for making this powerful feature so easy and without any DAX. Thanks you so much Parker.

  • @llamapunk89
    @llamapunk89 8 місяців тому

    This worked like a charm. Thanks for showing this so succinctly!

  • @Amr-Ibrahim-AI
    @Amr-Ibrahim-AI 6 років тому +3

    Simplicity is the mother of beauty 😍
    I like how simple this was.
    Simple and powerful.
    Thank you for sharing this.

    • @BIElite
      @BIElite  6 років тому +3

      +Amr Ibrahim haha you're very right! Thanks for watching

  • @claudiavargas5817
    @claudiavargas5817 5 років тому +6

    This is totally awesome but my Query is really big (2mm rows) and I need a lot of dimensions to filter (15). Is there a way to do it with a Table, without having to duplicate the Query?
    Thanks!

  • @robertszrk2444
    @robertszrk2444 3 роки тому

    thank you for this tip. I use that extensively, especially with matrix visuals to add and change columns dynamically. You can create another (second) data unpivot table so that you could have 2 slicers able to dynamically add two columns in the matrix. I am looking for the way to have only one slicer with all my dimensions in it (all collumn names) and multi-select those, getting as many columns in my matrix visual, as the items selected in the slicer. would you see any way to get such functionality in PBI?

  • @MultiWafflemaster
    @MultiWafflemaster 3 роки тому +2

    Thanks for the tutorial! Is there a way for the axis title to dynamically change as well, rather than be set on "Value"?

  • @marinehobbyhub3519
    @marinehobbyhub3519 5 років тому

    Great tip by BI Elite. Is there a possibility to use the same trick with multiple columns from multiple tables. How can we apply the same trick for the above requirement.

  • @tacijjola
    @tacijjola Рік тому

    Amazing. Thank you. Great tutorials. Very useful.

  • @estebansuarezcastro7053
    @estebansuarezcastro7053 4 роки тому +1

    You save my day. Thank's for this. Keep going man!

    • @BIElite
      @BIElite  4 роки тому

      Haha good to hear, Esteban!

  • @v.s.5460
    @v.s.5460 4 роки тому +1

    What if the columns you want to switch between belong to different tables? In that case, is there a way to implement this solution?

  • @vitaliburla8498
    @vitaliburla8498 6 років тому

    Well explained, I used the trick but without removing the value column, which makes the model lighter. Thank you:)

    • @BIElite
      @BIElite  6 років тому

      No problem Vitali! Thanks for watching

  • @sivanjali166
    @sivanjali166 5 років тому

    Very simple and good explanation brother..
    Is there any way to do the grouping and filtering the same time with this trick..? For example the above we have Name and Product groupings. As well as under Name group we have 3 names. By doing the grouping with Name, can we filter the Parker...?

  • @jyotidatta2126
    @jyotidatta2126 2 роки тому

    Thank you. Watched the video many time. However not able to bring the data at my end. I am pulling up columns from multiple tables to make a DataUnpivot table and adding index on all the Dim and Fact tables so as to associate with each other. Then relating the tables with Index columns, but the result is not getting achieved. Will you please advise in this regard?

  • @dhruv189
    @dhruv189 4 роки тому

    Works perfectly. Thank you for the clear instructions.

    • @BIElite
      @BIElite  4 роки тому

      Thanks for watching, Dhruv!

  • @jagritikumari9691
    @jagritikumari9691 2 роки тому +1

    Can it be applied for a measure instead of dimension (for y-axis in case of line chart)? i.e. x-axis constant dimension of month-year and y-axis (dynamic measure, say sales or profit or sales_lag) to be dynamically chosen through slicer.

  • @pablomelo939
    @pablomelo939 4 роки тому +2

    When I use this method charts take forever to display. My data table is 500k and I have 7 attributes which bridge table becomes 3.5 m. How do I get around this?

  • @colinweibel5079
    @colinweibel5079 2 роки тому

    Hey, thank you, great Solution. I still have problem tough. Because I want to slices may bar chart between Date, Week of the year and Month. If I use the value column as X axis, I cannot arrange them in the correct chronological order. Can someone help me?

  • @patelzinho
    @patelzinho 3 роки тому

    This works but it seems to corrupt if there is a database refresh. Do you have to recreate these steps everytime you refresh the source data?

  • @josuebarrantes2484
    @josuebarrantes2484 4 роки тому

    I am trying this and it works, but the index columns are changing when I refresh the data, so I get different values when I filter the same index of pivoted and unpivoted table, any idea?

  • @kripeshshiwakoti441
    @kripeshshiwakoti441 4 роки тому

    Is there a way in which we can use two dimensions in X-axis instead of just 1

  • @standarddeviation1138
    @standarddeviation1138 4 роки тому

    I'm trying to set up my time x-axis for my assignment. Hopefully you can help @BI Elite :D

  • @ruyiruyi886
    @ruyiruyi886 3 роки тому

    Very clear presentation.

  • @evett16
    @evett16 3 роки тому

    Very useful video! Thank you very much!

  • @NOOBKILLER052
    @NOOBKILLER052 2 роки тому

    Is there a way to do this with dates? The slicer being a date range and the values are numeric

  • @sureshpunna205
    @sureshpunna205 4 роки тому

    Hi,
    I have multiple dimensions type columns in multiple tables, I want create table with desired columns Headers and put slicer in report and when we select any dimension report dimension has to change as per slicer selection, Please help.
    Thanks in advance.
    Suresh

  • @emceesnypher
    @emceesnypher Рік тому

    Can I do this for legend too instead of axis?

  • @28preksha
    @28preksha 4 роки тому +1

    Good work....
    But I am strucked at the point where I have 32 charts so as per your explanation I need to make 32 measures , can't make it simple by making 1 or 2 measures and use it in every chart

  • @kealkil4
    @kealkil4 5 років тому +3

    Thank you for the very clear presentation.
    A question re the Power Query Changes!
    Would the solution still work if you did a "Reference" rather than a "Duplicate" in Power Query?
    Ted

    • @BIElite
      @BIElite  5 років тому +1

      Great question. Yep it would work the same. You would still be loading in two separate tables at that point, but your suggestion would make it a little cleaner

  • @Lordtmnz98
    @Lordtmnz98 4 роки тому

    I liked the trick, but I have another one harder step that I believe would be equally challenging (Idk if you already have a video on that, if yes, let me know: what if I want to have a bar chart with 2 cities and I want to know their population from a database of cities and how much population each city has. However, I want to individually select each city so I can compare each cities' population individually. How would I do that?

  • @gilbertsonlufc
    @gilbertsonlufc 2 роки тому

    I must be doing something wrong somewhere, but going through the video several times, not sure what. My visual is a stacked bar-chart. I was able to create the attribut slicer, but when I select the attribut, it displays the attribut and the total. It doesn't display the different attriibuts. Basically, I get one bar rather than multiple bars...Is this because I am trying to apply attributs to a y-axis? In which case, is there a better / different approach for Dynamic Y-AXIS?

  • @josbar80
    @josbar80 2 роки тому

    Brilliant, thank you

  • @valentinloghin4004
    @valentinloghin4004 3 роки тому

    Hi, very nice can we do the same using dax !?

  • @viacheslavkrasin3119
    @viacheslavkrasin3119 2 роки тому

    Its amazing!

  • @martinrodriguez469
    @martinrodriguez469 2 роки тому

    Thank you so much!

  • @tobedeleted2030
    @tobedeleted2030 4 роки тому

    what is name Parker item Bike, had 2 entries in your data table, would it have an issue, do you need to remove duplicates in your unpivot?

  • @jiranansupawong7472
    @jiranansupawong7472 2 роки тому +1

    Great Video

  • @anthonylui90201
    @anthonylui90201 3 роки тому

    Thanks a bunch for this @BI Elite. Please is there a way this can be applied to scattered plot with both X and Y axis? Thanks in advance for your help. Cheers

  • @tarekyeh6245
    @tarekyeh6245 3 роки тому

    I can't thank you enough 😍

  • @jyotidatta2126
    @jyotidatta2126 2 роки тому

    Furthermore on creating the DataUnpivot and applying the changes, the DataUnpivot takes forever to load :(

  • @jaysonquitain5929
    @jaysonquitain5929 4 роки тому +1

    Hi! if data from the main table changes? should i re create the unpivot table?

    • @BIElite
      @BIElite  4 роки тому

      Hi Jayson, if you use the "unpivot other columns" technique, I don't think you will need to!

  • @claudiavargas1678
    @claudiavargas1678 6 років тому

    Awesome Tip!

    • @BIElite
      @BIElite  6 років тому

      Thanks for watching Claudia!

  • @krishnakishorepeddisetti4387
    @krishnakishorepeddisetti4387 5 років тому +1

    you are awesome bro....very smart trick... it helped me in my project.
    just putting forward a point. you have created a duplicate. it would have saved some space if it was a reference .
    what is your opinion on that
    Thanks and Regards
    Kishore

    • @BIElite
      @BIElite  5 років тому

      You're very right! Thanks for the tip

  • @rylandtaylor7793
    @rylandtaylor7793 5 років тому +2

    This trick has worked really well with my smaller datasets with less complexity. I tried this out on a pretty large dataset, and am able to update the group by correctly, however, the individual row values are not the same, only off slightly. Its odd though, because the totals of the new table, and my old one are the same. Any tips?

    • @BIElite
      @BIElite  5 років тому

      Hey Ryland, sorry I don't have any tips for that. I haven't experienced what you're talking about but thanks for bringing it up. If I ever run across this, I'll remember your comment and come back here if I find anything out.

    • @llamalinden
      @llamalinden 4 роки тому

      I am having the same problem!

  • @hermesjrd
    @hermesjrd 6 років тому +1

    Great tip

    • @BIElite
      @BIElite  6 років тому

      Thanks Hermes!

  • @DarkNog
    @DarkNog 5 років тому

    How would you solve this if you wanted to change the Y axis instead of the X axis? i.e. if you wanted to change the values being measured?
    For example on the X axis you could have the names of products you are selling. On the Y axis, I would ideally like a slicer which can switch between the total value of sales and the total number of units sold.

    • @BIElite
      @BIElite  5 років тому +1

      +Philip Butler I made a video on exactly this! Check it out here: ua-cam.com/video/OIGGrrnMIgk/v-deo.html

  • @zxccxz164
    @zxccxz164 2 роки тому

    I am stuck at making an index, which i want to do as a calculated column in existing table. I tried RANKX but it gives the same number for the same date

    • @zxccxz164
      @zxccxz164 2 роки тому

      ended up just doing it in SQL so it just loads with the table. way overly complex to do a rank on 2 columns in dax

  • @niroznak
    @niroznak 5 років тому +1

    Great!!!!!, many thanks.
    does it still works if the table is updated?

    • @igizan
      @igizan 4 роки тому

      I am trying to keep the behaviuor after table updating as well. I need to keep it working after table update, or otherwise automate the unpivot table creation. Can anyone help me?

    • @1989PU
      @1989PU 4 роки тому

      @@igizan Whatever changes you make in the base data will be reflected in both tables automatically

    • @joecronk6158
      @joecronk6158 2 роки тому

      ​@@igizan I'm having the same issue. When data is updated in the primary table the unpivoted table is not getting the latest values. Have you found a solution for this? I'm wondering if the suggestion from @kealkil4 to use a "Reference" rather than a "Duplicate" in Power Query would work?

    • @igizan
      @igizan 2 роки тому

      @@joecronk6158 I'm sorry Joe, but I don't remember how I solved the issue. In the meanwhile we (at my job) opted for another data viz tool

  • @77MISTERSHARK
    @77MISTERSHARK 5 років тому

    caw we use dates on x axis ? Slicer will select year, quarter, month, week, daily scales.

    • @umairismail9555
      @umairismail9555 4 роки тому

      I also have the same issue. My calendar table is created in PowerBI using DAX. Appreciate if you provide an option. Thanks

  • @nirvana_moksh
    @nirvana_moksh 5 років тому

    This is great! I was trying something with TREATAS and CROSSJOIN. Can we have something for a dynamic Y AXIS selection along with a X AXIS selection?

    • @BIElite
      @BIElite  5 років тому

      Nice! Check out my other video for dynamic Y-Axis: ua-cam.com/video/OIGGrrnMIgk/v-deo.html. It's even easier to set up than a dynamic X-Axis

    • @nirvana_moksh
      @nirvana_moksh 5 років тому +1

      @@BIElite - thank you for the quick reply! Just to confirm this can be used in conjunction with having a dynamic x axis + a dynamic y axis for the same visual?

    • @BIElite
      @BIElite  5 років тому

      @@nirvana_moksh I've never tried but I think it would work! Give it a try and let me know if you have success!

    • @nirvana_moksh
      @nirvana_moksh 5 років тому

      I just used the same X axis format for Y, by creating a duplicate table and keeping all fact related columns and it works! I think the only drawback I see is the table is being loaded three times I guess. Otherwise I think this is more maintainable compared to having a DAX doing crossjoins for all the measure slicers first and then using TREATAS. Thanks again!

    • @BIElite
      @BIElite  5 років тому

      +Nirvana Moksh nice! Glad to hear you got it working! I will have to try it out myself

  • @ryanfisher5835
    @ryanfisher5835 6 років тому

    Brilliant!

    • @BIElite
      @BIElite  6 років тому

      Thanks Ryan!

  • @elmerparica5494
    @elmerparica5494 4 роки тому

    How date? (Switch to date and month on the X-Axis?)

    • @alexandreletourneux9581
      @alexandreletourneux9581 4 роки тому

      I have the same question/issue.. being able to display Date Range (e.g. MTD, QTD, YTD) in x-axis chart as attribute..

  • @AntonioMontanaC
    @AntonioMontanaC 4 роки тому +1

    Raptor Quality Approved

  • @syedsirajudeen6394
    @syedsirajudeen6394 2 роки тому

    Cool one

  •  6 років тому

    ¡Excelente!

    • @BIElite
      @BIElite  6 років тому

      Thanks José!

  • @ecovalley
    @ecovalley 4 роки тому +1

    Like a charm!

    • @BIElite
      @BIElite  4 роки тому

      Glad to hear! This is a cool trick, indeed.

  • @vincentduy1987
    @vincentduy1987 5 років тому

    many thanks.

    • @BIElite
      @BIElite  5 років тому

      Thanks for watching!

  • @sadyaz64
    @sadyaz64 6 років тому

    Thank you

    • @BIElite
      @BIElite  6 років тому +1

      +sadyaz64 and thank you as well 😊

  • @neeleshsrivastava7137
    @neeleshsrivastava7137 4 роки тому +1

    neat..very neat!

    • @BIElite
      @BIElite  4 роки тому

      Agreed! This is a lot of fun.

  • @PrideEnchantaVagale
    @PrideEnchantaVagale 6 років тому

    Good trick

    • @BIElite
      @BIElite  6 років тому

      I appreciate the feedback Suresh!

    • @PrideEnchantaVagale
      @PrideEnchantaVagale 6 років тому

      BI Elite for any queries how do i contact you?

    • @BIElite
      @BIElite  6 років тому

      +Suresh Vagale feel free to reach out via email at powerbielite@gmail.com

  • @hi_vishy
    @hi_vishy 5 років тому +1

    Omg...genius

    • @BIElite
      @BIElite  5 років тому

      Yeah I love this trick! I use it all the time

    • @hi_vishy
      @hi_vishy 5 років тому

      @@BIElite one query in chart. Need column and line series on primary axis and another line series on secondary. This is possible in Excel. Is there any custom visual with this functionality?

    • @BIElite
      @BIElite  5 років тому

      +Vishesh Saxena I'm not sure about excel, I only know that this is not supported in Power bi. If you are trying to do this in Power bi, it might be possible with the use of an R or Python visual. I have a video on Dual-axis line charts in R that might be able to get you in the right direction

  • @srinivasreddysingireddy536
    @srinivasreddysingireddy536 6 років тому

    Wow...!!

    • @BIElite
      @BIElite  6 років тому

      +Singireddy srinivas reddy Thanks! Hope you find it useful

    • @srinivasreddysingireddy536
      @srinivasreddysingireddy536 6 років тому

      Ofcourse...!! As always very useful tips and easy way to understand your tips..!!

  • @nitwitchiropractor6615
    @nitwitchiropractor6615 9 місяців тому

    Fantastic work! I've been trying every posting (including @GuyInACube) to no avail, until I found your tips. One question though...How do I NOT have an Attribute Slicer and set the Attribute value from a Measure? This would help ALOT!