Change Measure using a Slicer

Поділитися
Вставка
  • Опубліковано 8 лют 2025
  • One of the most common questions that I get is, how can I change measures using a slicer? In this video I’ll exactly show how can you do that in Power BI.
    Download File - www.goodly.co....
    - - - My Courses - - - -
    ✔️ Mastering DAX in Power BI -
    goodly.co.in/l...
    ✔️ Power Query Course-
    goodly.co.in/l...
    ✔️ Master Excel Step by Step-
    goodly.co.in/l...
    ✔️ Business Intelligence Dashboards-
    goodly.co.in/l...
    - - - Blog - - - -
    www.goodly.co....

КОМЕНТАРІ • 134

  • @ameedazfar2023
    @ameedazfar2023 3 роки тому +13

    Hi, just want to say this out loud. You truly make working with DAX easy! Thanks for showing the step by step iteration of the complete process. :)

  • @chamanthawickramarathne2029
    @chamanthawickramarathne2029 Місяць тому

    Thank you so much, You literary saved my whole Power BI project which had been stagnated.

  • @emilmubarakshin49
    @emilmubarakshin49 Рік тому +1

    Amazing Chandeep you’ve had video for these waaaaay before the field parameters were introduced to powerBi 👍👍👍😍😎🤗😁

  • @sonalijain9024
    @sonalijain9024 5 місяців тому

    The way u explain is just amazing. It is very clear n full of energy.

  • @rakeshc8502
    @rakeshc8502 10 місяців тому

    Wow, I have been searching for this calculation for the last 2 weeks or so...finally found it; thank you!

  • @branzo79
    @branzo79 3 роки тому +1

    this is excellent. you can dynamically change your title (if you add one to the table) by pointing at your 'select a calculation' measure in the title format panel. it works for me.

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

      That's great. Would you elaborate on how you were able to change the title dynamically?

  • @alessandropizzotti932
    @alessandropizzotti932 8 місяців тому +2

    There's an easy way to have the column header change dynamically: add your measure to the columns of the table and hide the column subtotals.

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

    Dude, thank you! Easy to understand and got what I needed!

  • @dataguys2192
    @dataguys2192 2 місяці тому

    Like always, great work! Can I make a suggestion? You mentioned you don't know how to create dynamic column headers. However there is a video of you on that topic a few months later. Can you add that video right after this video in the playlist. It will give your students the chance to learn related topics in a structured way.

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

    As always, best crip and clear explanation...
    Cheers..Way to go..
    A true asset for Data Community

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

    Excellent video again. I love that you get straight to the point! Keep it up.

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

    You resolved the big problem.Thank you!

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

    Excellent as always...👍

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

    Thanks for this Video its soo simple and clear instructions.

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

    Outstanding video!!

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

    It seems it is the best dax channel i found so far.

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

      Thank you for your inspiring words! 😊

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

      @@GoodlyChandeep You are welcome. You can explain tricky things in the way people can understand. This is a nice skill especially with DAX which seems a pure evil, at least for me🙂

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

    Exactly what I needed, thank you!!

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

    Great video, quick and straight to the point with no fluff. Eventually did you find a fix to the column header as this is 3 years old video?

    • @GoodlyChandeep
      @GoodlyChandeep  Рік тому +1

      Yes now using a native feature called field parameters

    • @foxysatisfying675
      @foxysatisfying675 11 місяців тому

      @@GoodlyChandeepDid you make video on that?

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

    You just saved my day with this video. Thanks!

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

    Hi Chandeep,
    You can even give dynamic naming by using
    Title = IF(ISFILTERED(Slicer table[Selection]), VALUES(Slicer table[Selection]) & "by Date", "Please select single value from slicer"). I hope you will find useful

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

      Thanks Mohit :)

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

      is that suggestion actually work , Chandeep ??
      I am not sure, please let me know
      Thanks

  • @suganya48
    @suganya48 3 роки тому +3

    this is very helpful for single selection on slicer. Is there any way to do multi-selections in slicer?

    • @moviefreaky9298
      @moviefreaky9298 3 місяці тому

      Hey, let me know if you got a solution to this multi selection

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

    Excellent explanation Chandeep. Thank you

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

    Thanks for an excellent explanation! Do you know how the code can be adjusted if we want to select and display several unrelated measures on the same chart/visual?

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

      I am looking for the same too. What if I want to select multiple options from slicer to display total sales and total units etc

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

      Have a look here guys: ua-cam.com/video/cT86pzHz018/v-deo.html

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

      Seems no solution?

  • @ariffkmy4235
    @ariffkmy4235 3 роки тому +1

    thank you for the tutorial!!

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

    i really appreciate this video. Also, what if i want to show more than 1 selected measure and also a sumproduct of all measure to always show depending on the number of selected measure

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

    Worked perfectly, Thank you!

  • @jkboyette
    @jkboyette 4 дні тому

    How would this work if you wanted the user to be able to select multiple measures from the slicer, and have each of them be shown in the table or matrix?

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

    This video has been very helpful to me. Thank you for sharing it. The video shows how to apply this to pivot tables. Can we apply it to graphs as well? Actually, I'm looking for a video like this to help me change the names of the fields in the graph.

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

    Amazing as always... Thanks for sharing!
    Could you share a screenshot of how the dynamic "Calculation" column would look like when no value in slicer is selected?

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

      Check out the last gif in the blog. Links are below

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

      @@GoodlyChandeep Got it! Thanks again.

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

    This is a great post! Thank you very much!!

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

    Excellent video, sir!

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

    Great video, very very helpful

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

    Thank you Goodly! Very helpful!

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

      Glad it was helpful!

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

      @@GoodlyChandeep chandeep FYI instead of blank if you use +0 at the end measure will get 0 it looks good

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

    Hi, You are real dax master, I have one query if I want to select multi measure in slicer and output should be show in matrix for exp. If I select Total sale, Total unit then matrix show me two fields(Value) as per my selection. How can we apply it.

  • @AbhishekZagade
    @AbhishekZagade 3 місяці тому

    Hii Chandeep awesome video. Can you make a video like if we have 2 date slicers both are same and we have maybe line chart in which we have 2 total sales measures which is shown by month and year. So the condition is if something is selected in the slicer 1 only first measure should react in line chart and other shouldn't and if something is selected in the second slicer than second measure should react to it. But if there are selections made in both the slicers at the same time then visual should not show blank it should filter their respective measures without conflict.

  • @vijayendirankarthikesan
    @vijayendirankarthikesan 5 місяців тому

    Wonderful. Did you got the answer to dynamically change the calculation header?

  • @abdulkhadershaik4738
    @abdulkhadershaik4738 5 днів тому

    Hi @goodly , I have 2 measures MTD, YTD. If the user is selecting any of the measures I need to display the selected measure but if he is either selecting both of them or none of them we need to display both the measures side by side. Can you suggest how can we do this. ?

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

    really awesome ,something new one and very useful.. thanks for this amazing video..

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

    thanks, this was very well explained.

  • @JoaoVictor-fh4on
    @JoaoVictor-fh4on 9 місяців тому

    this is vey good, i have a problem that id like to solve and havent been able to.
    so, in your calculation measure, you had to list every value-condition pair by hand inside the switch function. Id like a way to automate that, so that if a User adds a collumn to the database, it automatically detects that i want the column with that name.
    I was able to make the slicer table automatic, so every time a user adds a column, the slicer table gets one more line, but i cant do it inside the switch function.

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

    Awesome Tutorial !

  • @AlexAmaguaya-u5k
    @AlexAmaguaya-u5k 11 місяців тому

    does it support multiple selections?

  • @celsocaetano84
    @celsocaetano84 Рік тому +1

    is there a way to select multiple at the same time? I am trying but it keeps returning wrong values

  • @classic_anishtha_gupta
    @classic_anishtha_gupta 5 місяців тому

    How can I do the exact same thing but for every selection I need to do some calculation on different columns of table instead of just showing the column?

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

    Excellent sir, please post different slicer, if any new videos

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

    Hi cool video , quick question : here in this example we are passing text in a slicer - do we have the ability to pass date from a slicer and built a measure

  • @grytskokonstantin1272
    @grytskokonstantin1272 7 місяців тому

    God bless you. Thank you so much.

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

    Hi. Thanks for sharing. Wanna ask how about If I want show few column when selected one value in slicer? this only can show one column max

  • @foxysatisfying675
    @foxysatisfying675 11 місяців тому

    Hello. Did you found a way to change the column header name based on the slicer selection?

  • @JanaDVORAKOVA-s8m
    @JanaDVORAKOVA-s8m 9 місяців тому

    Hallo, I just wonder, is it possible to make a slicer that would change for example units/values but not in one measure but in lets say 5 of them at once. I have current year units, previous year units, evolution , weight of business and I want to be able to switch between them by clicking on the slicer. Is that possible?

  • @avinashkandoi2145
    @avinashkandoi2145 27 днів тому

    Can't we do multiple selection?

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

    How do we change the format type of the diff measures ( %, currency etc) within the switch calculation measure?

  • @Indian28051
    @Indian28051 5 місяців тому

    what if I want to use multiple selection on slicer to see multiple Metrics?

  • @RS-to6sp
    @RS-to6sp 29 днів тому

    how if i don't want choose one of select calculation, and want all column show (sales, unit, transaction, unique sell) ? because i try showing blank

  • @VikashSinha-c7s
    @VikashSinha-c7s 11 місяців тому

    How can i add monthly quarterly and yearly measures in slicer

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

    Great tutorial..Can we add multiple measures on single slicer selection?

    • @ginesc
      @ginesc 3 роки тому +1

      Yes you can :-) the table Chandeep has created has just one column, but if you create two columns Qty - Act Sales || Qty - LY Sales || Value - Act Val Sales || Value - LY Val Sales,
      whenever you click on Qty or in Value two measures will be visible in your report (if needed more , of course).

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

    Hi, huge thank you! However, when I insert the "calculations" measure into a line graph, it won´t display it. I changed the "Select a calcluation" text to a 1 and it still did not do it. Any help will be greatly appreciated it!

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

    Thanks you.

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

    Thank you So much Brother, your video helped in getting solution in project. But there is one glitch, I'm not able to apply Color Condition for the output. (I've made the measure as %). Please advise. Thanks again.

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

    Great video. Can we provide SELECT ALL option for user if they would like to select all measures in one go?

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

      Well technically you can, in that case you'll need to add a scenario in the DAX measure that shows all the calculations in a presentable way!

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

    Really cool Trick !! But I had a doubt
    How to sort this dynamic measure created in asc/ desc order and not show numbers in any order ?

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

    Excellent. Thanks a lot

  • @vijayendirankarthikesan
    @vijayendirankarthikesan 5 місяців тому

    Did you got the answer to dynamically change the calculation header?

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

    How can we sum the measures according to the selections made in the slicer? For eg. I have columns as Jan sales, Feb sales, Mar sales and so on. I have created a slicer table and the required measure. But I want to add these column values according to the selections made in the slicer. For eg. if I select Jan sales and Feb sales from slicer, a card should show me sum of Jan sales and Feb sales.

  • @anuragbawankar685
    @anuragbawankar685 3 роки тому +1

    Thanks sir ! If I want to select and display 2 or more columns/calculations then how it can be done??

    • @GoodlyChandeep
      @GoodlyChandeep  3 роки тому +1

      I think it can be done using calculation groups

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

      @@GoodlyChandeep Ok sir , just saw your calculation group video , Thanks a lot !!!!

  • @nimikajadav3004
    @nimikajadav3004 7 місяців тому

    I want to get rate from users then want to convert into that rate . how to do ? like if choosed INR then show INR value, if choose USD then pur rate from numeric range parameter and convert into USD using given rate , not manually put into table then convert.
    i need help.

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

    How to make it work for multiple selection

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

    Can we do multi selection and let the table shows them?

  • @eslamfahmy87
    @eslamfahmy87 3 місяці тому

    I need to why you used sumx for sales and sum for sales unit

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

    Hi Need your help, I have same condition to change the measure, but i want to change 3 measures at a time can we create group of measures and on selecting value in slicer respective measure group will displayed

  • @venubabutanneeru5960
    @venubabutanneeru5960 4 місяці тому

    How to display 2 visuals using bookmarks, when using slicer if I select all names display visual 1, if I select single name then respected data display in visual2, how to achieve, please help me

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

    How can we convert or use calculation to show percentage of Grand Total?

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

    I cannot format my Revenue in currency ($) when used this technique. Can you help? Thanks.

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

    Is it possible to change the query also based on slicer selection

  • @kirtigoel6871
    @kirtigoel6871 11 місяців тому

    very helpful !!

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

    You are amazing bro

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

    Thank you very much . Your video helps a lot ..how you derived Month format in "MMM"
    Is thr any Dax if so Please share

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

      =FORMAT ( Date[Date], "mmm" )

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

      @@GoodlyChandeep Thank you for your reply...in this case new column is text column instead of Date format..how to resolve this concern

  • @naniviru8517
    @naniviru8517 5 місяців тому

    How to select multiple measures here we could only select 1 measure

  • @WhatAWonderfulWorld25
    @WhatAWonderfulWorld25 Місяць тому

    It is easy to dynamically change title of the dynamic field no? 😅

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

    million thanks

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

    Always great following your tutorial. Could I,mid I may, request a tutorial on Parameters and Functions, please

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

    Thank u very much ,

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

    Thanks alot buddy 😊

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

    Thank you!

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

    And dynamic measure formatting!!,!!!🎉❤😂

  • @rajeshkannan.k.s204
    @rajeshkannan.k.s204 4 роки тому

    hey man.. is it possible to change the column title as per the selection ..?

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

      Head over to the blog post (linked in the video description) and download the powebi file. Its in there!

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

    thank you,

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

    Do you know how this same measure can be applied to a chart? For some reason, my calculation is stuck as a "TEXT" datatype not allowing me to place it in the values. When I add in a convert to Integer function to the measure it works for all of my metrics besides any values under 1. I have a specific metric which shows in decimals and its not displaying the data. Any ideas?

  • @edenalvarado1572
    @edenalvarado1572 4 місяці тому

    Great !

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

    Awesome.

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

    If I wanted to have a format to show my total sales in currency Format having $ Symbol. What is the way to achieve it. Appreciate if you can reply to this Issue. Thank you

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

      wrap the Total Sales in the Format Function
      = FORMAT ( [Total Sales], "Currency" )
      Read this post - www.goodly.co.in/dax-format-function/

  • @vijayendirankarthikesan
    @vijayendirankarthikesan 5 місяців тому

    Nice

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

    Thanks

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

    Not sure why but the link to download the sample pbix file on your blog page doesnt work.

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

    Awesomeness

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

    Good Sir

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

    I cant download bi file

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

    Great

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

    how change Legends Name based on Slicer Selection

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

    777th thumbs up7️⃣7️⃣7️⃣