Change Measure using a Slicer
Вставка
- Опубліковано 21 сер 2024
- 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
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?
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🙂
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
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.
Amazing Chandeep you’ve had video for these waaaaay before the field parameters were introduced to powerBi 👍👍👍😍😎🤗😁
As always, best crip and clear explanation...
Cheers..Way to go..
A true asset for Data Community
Dude, thank you! Easy to understand and got what I needed!
You resolved the big problem.Thank you!
this is very helpful for single selection on slicer. Is there any way to do multi-selections in slicer?
Excellent video again. I love that you get straight to the point! Keep it up.
Glad you found it helpful
God bless you. Thank you so much.
Exactly what I needed, thank you!!
Outstanding video!!
Thanks for this Video its soo simple and clear instructions.
Excellent as always...👍
You just saved my day with this video. Thanks!
Glad it helped!
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?
thank you for the tutorial!!
very helpful !!
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?
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.
Worked perfectly, Thank you!
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.
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.
Great video, very very helpful
Excellent video, sir!
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?
Excellent explanation Chandeep. Thank you
Thanks, I am glad you liked it :)
This is a great post! Thank you very much!!
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.
thanks, this was very well explained.
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
really awesome ,something new one and very useful.. thanks for this amazing video..
Awesome Tutorial !
Thank you 💚
Thank u very much ,
Thanks
Excellent. Thanks a lot
is there a way to select multiple at the same time? I am trying but it keeps returning wrong values
Excellent sir, please post different slicer, if any new videos
thank you,
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
Awesome.
Thank you!
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.
million thanks
You are amazing bro
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.
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!
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
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 ?
How do we change the format type of the diff measures ( %, currency etc) within the switch calculation measure?
Hello. Did you found a way to change the column header name based on the slicer selection?
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!
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 !!!!
And dynamic measure formatting!!,!!!🎉❤😂
Thanks alot buddy 😊
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
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).
does it support multiple selections?
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?
Great
Always great following your tutorial. Could I,mid I may, request a tutorial on Parameters and Functions, please
Sure.. I'd do that soon
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.
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?
How can i add monthly quarterly and yearly measures in slicer
Awesomeness
How can we convert or use calculation to show percentage of Grand Total?
Good Sir
I cannot format my Revenue in currency ($) when used this technique. Can you help? Thanks.
It works with ALLSELECTED() as well instead of SELECTEDVALUE()
Can we do multi selection and let the table shows them?
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 make it work for multiple selection
Is it possible to change the query also based on slicer selection
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/
Not sure why but the link to download the sample pbix file on your blog page doesnt work.
Thanks Steve, fixed it now
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!
how change Legends Name based on Slicer Selection
I cant download bi file
777th thumbs up7️⃣7️⃣7️⃣
Thanks