Change measures and switch MTD/YTD using slicers in Power BI || Zebra BI Knowledge Base

  Рет қаралды 46,268

Zebra BI

Zebra BI

Күн бұрын

Пікірлер: 41
@ZebraBI
@ZebraBI 12 күн бұрын
Let us teach you Power BI: bit.ly/3WjGrpq
@WithCáStudy
@WithCáStudy Ай бұрын
Thank you very much! I once encountered this slicer and was deeply impressed by it, but I couldn’t find any instructions. Thanks to you, I now know how to create it. Wishing you good health and even greater success in your work!
@Your_Life_Tuner
@Your_Life_Tuner Жыл бұрын
I really loved the way you explained it . very clear. thanks a lot... Nimantha from Sri Lanka
@jatindersingh2241
@jatindersingh2241 3 жыл бұрын
I really loved the way you explained it . Very smooth
@ZebraBI
@ZebraBI 3 жыл бұрын
Thank you Jatinder!
@gxsoft
@gxsoft 4 жыл бұрын
Thanks a LOT Andrej & Team I enjoy your videos and learn about Zebra BI but PowerBI too, thanks
@ZebraBI
@ZebraBI 4 жыл бұрын
Thank you, Gabriel! It's always a pleasure creating new content for such an amazing community :)
@hildelafosse356
@hildelafosse356 7 ай бұрын
very clear explanation, thanks
@music_for_relaxation607
@music_for_relaxation607 9 ай бұрын
Thank you very much! Such a clear explanation
@AitorZapirain
@AitorZapirain 4 жыл бұрын
The power and beauty of disconnected tables!!!!! love them as much as your visuals
@ZebraBI
@ZebraBI 4 жыл бұрын
Awww... that's so sweet 🥰 And yes, disconnected tables are truly a marvel.
@argokusumandani9773
@argokusumandani9773 4 жыл бұрын
Thank you Sir!! Like the visual👍
@ZebraBI
@ZebraBI 4 жыл бұрын
You're welcome!
@MnisKmr
@MnisKmr 5 ай бұрын
How have you created sales scenerio measure?
@ZebraBI
@ZebraBI 5 ай бұрын
This is the file that was used for the video: zebrabi.com/template/sales-dashboard-power-bi-template/ You can see how everything is made in there.
@mohamedaboobackersiddique7322
@mohamedaboobackersiddique7322 3 жыл бұрын
Thank you for your great tips. is it possible to have custom 445 calendar measure(sales) which can be shown dynamically? I tried dateadd function but it's doesn't work with 445
@eugene__eugene
@eugene__eugene 3 жыл бұрын
Ofcourse you can make it work with 445 calendars, the only thing you need to know to make it shift to prior year correctly is if the previous year had 52 or 53 weeks in the 445 calendar. Based on that you "add" -52 or -53 weeks. So that is -364 days or -371 days.
@ZebraBI
@ZebraBI 3 жыл бұрын
Hi Mohamed, we suggest that you look into this article on DAX Patterns to learn more about week-related time intelligence: www.daxpatterns.com/week-related-calculations/. Hope this helps!
@jitendratrivedi7889
@jitendratrivedi7889 4 жыл бұрын
Nicely explained. Love zebra BI visuals.
@ZebraBI
@ZebraBI 4 жыл бұрын
Hi Jitendra, thank you for stopping by! We promise to keep making new videos in the future 💛
@reggieo4889
@reggieo4889 3 жыл бұрын
Thank you so much for this tutorial. Just what I needed. Just curious, is it possible to select more than measure? For example, is there a way to have both revenue and cost showing in the visual?
@ZebraBI
@ZebraBI 3 жыл бұрын
Hi Reggie, you could select both Revenue and Costs in the drop-down menu, which would result in SUM of Revenues and Cost on the visual. If you would want to display them separately, you would need to structure them a bit differently by having a separate measure for each KPI, or to unpivot KPI columns to the dimension that can then be used as a category or a group.
@keviny8422
@keviny8422 2 жыл бұрын
Great video and appreciate you walking us through the steps to set-up & create. One issue I have. I have my PBI slicers for Month and Year set to 7 (Jul) and 2022. I've confirmed my Switch, tied to my MTD/YTD buttons are working correctly. When using the Zebra BI Table visual (v5.4.0) and I click on the MTD button, the visual shows Jul MTD data. However, if I click on the YTD button the visual does not change, it still shows the Jul numbers. Again I've confirmed my SelectedCalc is 2 (YTD). If I remove 7 (Jul) from the PBI slicer then my YTD numbers show. Below is my SWITCH statement, which uses an AGG table. It seems the PBI month slicer for some reason is overriding my YTD switch DATESYTD statement. Thoughts? Rewards AC Switch = SWITCH([Selected], 1, SUM(AggFactTable[NonSumCount]), 2, CALCULATE(SUM(AggFactTable[NonSumCount]), DATESYTD(DimEarnedDate[Date]))) Summary: YTD - If my PBI Year Slicer is set to 2022 and Month slicer is ALL, I see my YTD numbers in the visual. All Good MTD - If my PBI Year Slicer is set to 2022 and Month slicer is set to 7 (Jul), I see my MTD is the visual. All Good However, if I click on the YTD button the visual remains with Jul only data. I have to clear out the PBI Month slicer to see YTD numbers again.
@ahmedsenosy9803
@ahmedsenosy9803 3 жыл бұрын
Very useful and efficient Thanks A LOT !!!
@ZebraBI
@ZebraBI 3 жыл бұрын
You're welcome!
@arcus84
@arcus84 3 жыл бұрын
Hi, we have implemented the aproach you presented here but with a lot of modifications. We have a disconnected tables for Month/YTD/MTD, Currency selection (2 possible), Plan type (3 possible), Forecast type (2 possible), Cost type (2 possible) and KPIs (23 possible). We use nested SWITCHes for calculating AC, PL, PY, FC. Unfortunatelly our model started to work very slow. Do you have any idea how so complicated SWITCHes work? It looks like they evaluate every possible combination even if the result is not going to be used. When we put these 4 scenarios into Zebra table the visual refreshes very slow. At the same time it works fine in Zebra chart (same values, groups, categories in both visuals). Why is this happening?
@ZebraBI
@ZebraBI 3 жыл бұрын
Hi Arkadiusz, this might be a bit too extensive to be able to solve here. There's a great article for optimizing such SWITCH statements done by Marco Russo of SQLBI that could be useful: www.sqlbi.com/articles/optimizing-if-and-switch-expressions-using-variables/. Hope this helps!
@mohshalsh5965
@mohshalsh5965 2 жыл бұрын
How could i generate a dynamic table of Current/YTD/MAT with multiple selections of year month slicer?
@packpack1432
@packpack1432 4 жыл бұрын
Very useful feature. Thank you. I've seen also your other P&L statement examples. I wonder how do you deal with multiple columns for each position in P&L statement and show % share of Turnover for each cost position, so you can compare structural change AC vs PY? I haven't found a case like this yet.
@ZebraBI
@ZebraBI 4 жыл бұрын
Hi Luka, this is a great question. We explained this in our latest product update video with the new feature in Zebra BI Tables visual 4.3 called “Scaled groups”: kzbin.info/www/bejne/d4O8immDZpuBiKM In the description of that video there is also a link to download the PBIX demo file so you can check it out and see how it was done. Hope this helps :)
@RazvanMirea-se5ry
@RazvanMirea-se5ry 6 ай бұрын
Great tutorial! Thank you very much for sharing this valuable information. I have tried and it’s working properly! I have only one question , I don’t know how to solve it : If I set 1 button to chose sales (either QTY’s or Value/Euro) I need to appear currency when I press for Value. Could be possible to set in the same function “whole number “ for qty’s and “currency” for Value ? Dax formula: Current Year Sales ( QTY’s vs Value/Euro)= Switch( [QTY’s or Value Selection], 1,[Current Year QTY’s], 2,[Current Year Value] ) Thank you!
@ZebraBI
@ZebraBI 6 ай бұрын
I think this could be solved with custom formatting on measure. If this does not work please reach out to our support with a demo file so we can help you.
@vsr1727
@vsr1727 4 жыл бұрын
Thank you
@ZebraBI
@ZebraBI 4 жыл бұрын
You're welcome!
@AhmedSallaam
@AhmedSallaam 2 жыл бұрын
When selecting a month let's say Oct. the filter override the monthly or YTD calculation and shows only Oct. am I doing anything wrong?
@justauser4456
@justauser4456 2 жыл бұрын
Did you figure out the solution to your problem? I am currently investigating the same, the month slicer is filtering only for the month rather than the period selected in the slicers.
@chengwang411
@chengwang411 3 жыл бұрын
Cool earring
@gauravaga2377
@gauravaga2377 3 жыл бұрын
Through above example I have worked for YTD & PYTD . But It reports current YTD but in PYTD no number is coming, through following formula PY = CALCULATE(Sheet1[CY],DATEADD(Sheet1[Date],-1,YEAR)). Kindly help me to solve it.
@silvestro2in1
@silvestro2in1 3 жыл бұрын
You have to have a context year from a year slicer (select actual year in a year slicer and should work)
@danuareehusen960
@danuareehusen960 2 жыл бұрын
If I want to set a slicer month to be a Current month . Can I do that ? If I can How can I do that ? Thank you😅
@neelanshunisingh971
@neelanshunisingh971 3 жыл бұрын
Awesome
Change Measure using a Slicer
9:12
Goodly
Рет қаралды 66 М.
Try this prank with your friends 😂 @karina-kola
00:18
Andrey Grechka
Рет қаралды 9 МЛН
VIP ACCESS
00:47
Natan por Aí
Рет қаралды 30 МЛН
Beat Ronaldo, Win $1,000,000
22:45
MrBeast
Рет қаралды 158 МЛН
How to calculate MTD QTD YTD in Power BI DAX Tutorial (6/50)
15:32
Analytics with Nags
Рет қаралды 179 М.
The Most Important DAX Functions You Must Know in Power BI
20:23
REDUCE the # of measures with Calculation Groups In Power BI
9:24
Guy in a Cube
Рет қаралды 233 М.
How to build dynamic MTD/YTD Slicer | Power Bi | Data Analyst
11:44
Daxpert Praveen
Рет қаралды 16 М.
Change Measures using Slicers in Visuals
8:44
The Power BI Guy
Рет қаралды 10 М.
Try this prank with your friends 😂 @karina-kola
00:18
Andrey Grechka
Рет қаралды 9 МЛН