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....
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. :)
Completely agree
Thank you so much, You literary saved my whole Power BI project which had been stagnated.
Amazing Chandeep you’ve had video for these waaaaay before the field parameters were introduced to powerBi 👍👍👍😍😎🤗😁
The way u explain is just amazing. It is very clear n full of energy.
Wow, I have been searching for this calculation for the last 2 weeks or so...finally found it; thank you!
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.
That's great. Would you elaborate on how you were able to change the title dynamically?
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.
Dude, thank you! Easy to understand and got what I needed!
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.
As always, best crip and clear explanation...
Cheers..Way to go..
A true asset for Data Community
Excellent video again. I love that you get straight to the point! Keep it up.
Glad you found it helpful
You resolved the big problem.Thank you!
Excellent as always...👍
Thanks for this Video its soo simple and clear instructions.
Outstanding video!!
It seems it is the best dax channel i found so far.
Thank you for your inspiring words! 😊
@@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🙂
Exactly what I needed, thank you!!
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?
Yes now using a native feature called field parameters
@@GoodlyChandeepDid you make video on that?
You just saved my day with this video. Thanks!
Glad it helped!
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
Thanks Mohit :)
is that suggestion actually work , Chandeep ??
I am not sure, please let me know
Thanks
this is very helpful for single selection on slicer. Is there any way to do multi-selections in slicer?
Hey, let me know if you got a solution to this multi selection
Excellent explanation Chandeep. Thank you
Thanks, I am glad you liked it :)
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?
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
Have a look here guys: ua-cam.com/video/cT86pzHz018/v-deo.html
Seems no solution?
thank you for the tutorial!!
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
did you got the solution for this ?
Seems no solution?
Worked perfectly, Thank you!
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?
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.
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?
Check out the last gif in the blog. Links are below
@@GoodlyChandeep Got it! Thanks again.
This is a great post! Thank you very much!!
Excellent video, sir!
Great video, very very helpful
Thank you Goodly! Very helpful!
Glad it was helpful!
@@GoodlyChandeep chandeep FYI instead of blank if you use +0 at the end measure will get 0 it looks good
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.
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.
Wonderful. Did you got the answer to dynamically change the calculation header?
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. ?
really awesome ,something new one and very useful.. thanks for this amazing video..
thanks, this was very well explained.
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.
Awesome Tutorial !
Thank you 💚
does it support multiple selections?
is there a way to select multiple at the same time? I am trying but it keeps returning wrong values
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?
Excellent sir, please post different slicer, if any new videos
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
God bless you. Thank you so much.
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
Hello. Did you found a way to change the column header name based on the slicer selection?
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?
Can't we do multiple selection?
How do we change the format type of the diff measures ( %, currency etc) within the switch calculation measure?
what if I want to use multiple selection on slicer to see multiple Metrics?
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
How can i add monthly quarterly and yearly measures in slicer
Great tutorial..Can we add multiple measures on single slicer selection?
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).
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!
Thanks you.
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.
Great video. Can we provide SELECT ALL option for user if they would like to select all measures in one go?
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!
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 ?
Excellent. Thanks a lot
Did you got the answer to dynamically change the calculation header?
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.
Thanks sir ! If I want to select and display 2 or more columns/calculations then how it can be done??
I think it can be done using calculation groups
@@GoodlyChandeep Ok sir , just saw your calculation group video , Thanks a lot !!!!
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.
How to make it work for multiple selection
Can we do multi selection and let the table shows them?
I need to why you used sumx for sales and sum for sales unit
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
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
How can we convert or use calculation to show percentage of Grand Total?
I cannot format my Revenue in currency ($) when used this technique. Can you help? Thanks.
Is it possible to change the query also based on slicer selection
very helpful !!
You are amazing bro
Thank you very much . Your video helps a lot ..how you derived Month format in "MMM"
Is thr any Dax if so Please share
=FORMAT ( Date[Date], "mmm" )
@@GoodlyChandeep Thank you for your reply...in this case new column is text column instead of Date format..how to resolve this concern
How to select multiple measures here we could only select 1 measure
It is easy to dynamically change title of the dynamic field no? 😅
million thanks
Always great following your tutorial. Could I,mid I may, request a tutorial on Parameters and Functions, please
Sure.. I'd do that soon
Thank u very much ,
Thanks alot buddy 😊
Thank you!
And dynamic measure formatting!!,!!!🎉❤😂
hey man.. is it possible to change the column title as per the selection ..?
Head over to the blog post (linked in the video description) and download the powebi file. Its in there!
thank you,
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?
Great !
Awesome.
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
wrap the Total Sales in the Format Function
= FORMAT ( [Total Sales], "Currency" )
Read this post - www.goodly.co.in/dax-format-function/
Nice
Thanks
Not sure why but the link to download the sample pbix file on your blog page doesnt work.
Thanks Steve, fixed it now
Awesomeness
Good Sir
I cant download bi file
Great
how change Legends Name based on Slicer Selection
777th thumbs up7️⃣7️⃣7️⃣