No video

Different Measures Based on Slicer Selection in Power BI

  Рет қаралды 26,699

BI Land

BI Land

Күн бұрын

Пікірлер: 46
@zamvorga
@zamvorga 12 күн бұрын
Exactly what I was searching for. Thanks a bunch for your clear explanation.
@BILand
@BILand 10 күн бұрын
Great. Happy to hear that :)
@zamvorga
@zamvorga 10 күн бұрын
@@BILand I am hoping that you will be more active in posting new videos. You provide tremendous help. 👏
@user-rx1bm3xc7n
@user-rx1bm3xc7n 7 ай бұрын
Excellent video! Clear, concise, well-presented with easy to follow example. Thank you!
@BILand
@BILand 7 ай бұрын
You're welcome. Thank you for your kind comment
@brianligat9493
@brianligat9493 7 ай бұрын
Very helpful. I used this technique when I wanted to switch a visual to use Order, Due or Ship dates. I added BLANK() as a third/default coice in the SWITCH statement to make it obvious to another developer.
@BILand
@BILand 7 ай бұрын
That's great! thank you for your comment :)
@jaimerrojasrojas5924
@jaimerrojasrojas5924 2 жыл бұрын
Today I learned to use Switch properly.
@BILand
@BILand 2 жыл бұрын
Glad it was helpful !
@paulashley9680
@paulashley9680 2 ай бұрын
Thanks, This is really useful. I've used it in a matrix visual to show 5 different measures and wondering how you would adapt the dax so that you can select all measures to show in the table as well as each single measure or 2 of the 5 measures etc. Thanks again as a really clear video to follow 👍
@BILand
@BILand 2 ай бұрын
Hi there. Thank you. Happy it was helpful. It is possible but it won't be one measure. Switch wouldn't work in this way. You'll need to create as many measures as the categories in your slicer. In each measure defining if the category selected is such then such calculations. Then you'll need to put all these measures in your chart. The chart will shows the ones that are selected. As a matter of fact I'll cover this in my next work.
@edwinvaughan4792
@edwinvaughan4792 Жыл бұрын
Awesome! Thank you for taking the time to do this.
@BILand
@BILand Жыл бұрын
Thank you for watching, happy you liked it :)
@Sebastian-cj3yf
@Sebastian-cj3yf 7 ай бұрын
Muchas gracias hermano, this was very useful
@BILand
@BILand 7 ай бұрын
You're welcome :)
@smgt90
@smgt90 Жыл бұрын
Great explanation!
@BILand
@BILand Жыл бұрын
Thank you :)
@steveenblanco7522
@steveenblanco7522 Жыл бұрын
Thank you, you help me a lot.
@BILand
@BILand Жыл бұрын
You're welcome :)
@mohsinshaikh6269
@mohsinshaikh6269 7 ай бұрын
Excellent Video very helpful
@BILand
@BILand 7 ай бұрын
Thank you :)
@kelikisbiyantoro2518
@kelikisbiyantoro2518 2 жыл бұрын
Thanks for sharing, its inspire me
@BILand
@BILand 2 жыл бұрын
Thanks for watching, happy you liked it
@andrewbovell3998
@andrewbovell3998 Жыл бұрын
That's very helpful, would you use the same Switch and selected values measure if you had more than 2 items to select? for example if you had a table of 20 different funds to select from?
@BILand
@BILand Жыл бұрын
Hi there, yes this solution works for multiple selections as well, and makes it more professional than bookmarks. Sorry for the late response :)
@user-pt6gx5ie3f
@user-pt6gx5ie3f 7 ай бұрын
Thank you! The video was very useful for my project, but I'm stack with doing the same manipulations for the task when the Slicer needs to change the values ​​on the X-axis ( PowerBI allows to place such a measurement only as a Tooltip). Could you help me with this problem?
@BILand
@BILand 7 ай бұрын
Hello, I recommend you watching this video on dynamic axes for your need. kzfaq.info/get/bejne/er6faqpntdrNiXk.html With this and a bit work around you'll make it
@user-pt6gx5ie3f
@user-pt6gx5ie3f 7 ай бұрын
Thanks a lot@@BILand
@pamrayner3611
@pamrayner3611 6 ай бұрын
Hi. I have a similar issue, but am not sure how to adapt your solution. I want to have a list of categories, but each category has sub-categories; eg: citizenship with domestic and international as sub-categories, gender with male, female, other as sub-categories. How to I select the categories in the filter and have the sub-categories for that selected category as separate columns in the column chart?
@BILand
@BILand 6 ай бұрын
Hi there, if I'm not mistaken you're using the same measure and these categories and sub categories are normally in your fact or dimension tables. You'll just need to put the categories in the filter and the subcategories in x axis of the chart. Otherwise if you want to have categories and subcategories in the same chart but change axis according to the selection then you'll need to watch this video : kzfaq.info/get/bejne/er6faqpntdrNiXk.html
@pavell5237
@pavell5237 Жыл бұрын
This is a great work. but i have a situation where i need to select both measure at the same time while keeping the option to select one at a time. how can this be done. ?
@BILand
@BILand Жыл бұрын
Hi, you can change the slicer type in the slicer settings to multi select, and add the selection from the param table in the legends, it should work fine. Really sorry for the late response and thanks for your comment :)
@labenson27
@labenson27 9 ай бұрын
I have a similar issue, but I cannot seem to get this to work. I have a Date table. Each unique date is assigned a week number, fiscal year, week begin date, and week end date. I have a matrix that is looking to summarize one week's data. That data has a date within each record and has a relationship to the date table on that field. I have a slicer selected form the date table. I do not want them to select a range. I just want to select an "as of date" and have it return the return the week's data as of that specific date. If today is Friday, but I want to see my data from Monday through Wednesday, I need everything from the week begin date through the Wednesday date I select. I have tried so many things, but I cannot get the slicer to update the values to be based on a different week beginning date. Everything uses MAX, but that's just the most recent day so I am stuck with only this week's data and can't move back into a previous week nor remove the days that came after the date I've selected either.
@BILand
@BILand 9 ай бұрын
It's a bit different issue. Please watch this video that I put the link below. It's similar to your case. We can select any month but in charts, it shows from the beginning of the year or even from like 6 months ago. You'll need modify and do necessary adaptations for that to work for weeks too. kzfaq.info/get/bejne/h7eYoc1kxLjanKM.html Hopes this helpful !
@jigneshpadia
@jigneshpadia 8 ай бұрын
Great video. I am wondering if you could help solve a way to make a trend chart for the selected slicer values. Idea is to see if we can create a year and quarter trend based on selection from the slicer. Both Year and Quarter currently have a different slicer pane on the main report page. I can email you more details if you feel this would be of interest and if you could help.
@BILand
@BILand 8 ай бұрын
Hi there, I think what you need is dynamic axes, have a look at this video, I think it will help you kzfaq.info/get/bejne/er6faqpntdrNiXk.html
@diegozuniga2015
@diegozuniga2015 Жыл бұрын
Hi, i need to do somethin similar to this but i want my measures (the ones that for you are the oil and as production) to have different format, one is a percentage and the other one a number. I want to know if it is possible for the format of the new measure (selected production in you case) to change accordingly with the selection.
@BILand
@BILand Жыл бұрын
Hi, If it was a table you could use FORMAT function, (where custom format characters are available in the Microsoft documentation). Yet FORMAT converts to text so for charts it's a bit tricky. (Possible passing through large formula etc..) I would consider bookmark option. Hope this is helpful, sorry for the late response.
@adumont
@adumont Жыл бұрын
Hi. I'm trying to apply the same trick (kind of), to switch between two currencies. So I have a Measure (Cost) that shows the SUM() of CostUSD or CostEUR (two columns in my table), depending of the Value of a Slicer (Currency=USD or EUR). Do you know if there's a way to change the formatting based on the value of the slicer though, so the values are shown as 1€ or $1 . Thanks in advance,
@BILand
@BILand Жыл бұрын
Hi, sorry for the late response. If it was a table you could use FORMAT function with sth like "$#,##0" yet FORMAT converts to text so for charts it's a bit tricky. (Possible passing through large formula etc..) I would consider bookmark option. Hope this is helpful
@sarahhenkels8944
@sarahhenkels8944 2 жыл бұрын
good work 👍
@BILand
@BILand 2 жыл бұрын
Thank you !
@saadatnasibdar6656
@saadatnasibdar6656 2 жыл бұрын
Hi, I am stuck with a challenge, where I need to show Latest date of each ID(Each ID has multiple entries at different dates and times), but the catch is, there is date slicer(Between), so when we change date in slicer, Table should show latest date based on slicer. For example overall date range is from 01st April 2021 to 31st March 2022, so if latest date for id 707 is 18th March, only this should display, but if slicer is changed to 15th Apri1 2021 to 01st March 2022, then latest date between this should display for ID 707 which may be 25th Feb 2022
@BILand
@BILand 2 жыл бұрын
Hi, thanks for your comment. I think this formula will work for you: Measure = CALCULATE (MAX(fact_table(date), ALLSELECTED(calendar(date)) Bring this measure in front of the IDs. Let me know if worked !
@BILand
@BILand 2 жыл бұрын
Great !
Calendar in Power BI, Everything You Need to Know
28:17
BI Land
Рет қаралды 16 М.
🚨 YOU'RE VISUALIZING YOUR DATA WRONG. And Here's Why...
17:11
Adam Finer - Learn BI Online
Рет қаралды 97 М.
Люблю детей 💕💕💕🥰 #aminkavitaminka #aminokka #miminka #дети
00:24
Аминка Витаминка
Рет қаралды 532 М.
English or Spanish 🤣
00:16
GL Show
Рет қаралды 8 МЛН
Change Measure using a Slicer
9:12
Goodly
Рет қаралды 60 М.
Select Multiple Measures in Power BI Slicer
14:33
BI Land
Рет қаралды 502
Power BI - Filter by a Measure in a Slicer
10:52
BI Elite
Рет қаралды 188 М.
SUPERCHARGE VISUALS in Power BI | Add KPIs to Titles
20:13
How to Power BI
Рет қаралды 88 М.
Dynamic Column Headers (with Field Parameters) in Power BI!
7:44
Havens Consulting
Рет қаралды 7 М.
How to Use MEASURE FILTERS in Power BI
11:53
BI Land
Рет қаралды 9 М.
How to set a DATE SLICER to TODAY by default in Power BI
9:02
How to Power BI
Рет қаралды 163 М.