Тёмный
No video :(

DAX Fridays! #20: Parent and Child Functions -Hierarchies 

Curbal
Подписаться 135 тыс.
Просмотров 53 тыс.
50% 1

In this video we will go through how to work with hierarchies using the following DAX functions:
PATH, PATHLENGTH, PATHITEM, PATHITEMREVERSE, PATHCONTAINS
The example used will be a simplified bill of materials (BOM) but in the microsoft documentation, there is an excellent example for employees and Managers.
Keynotes:
01:51 PATH
06:37 PATHLENGTH
07:31 PATHITEM
08:30 PATHITEMREVERSE
09:56 PATHCONTAINS
Link to Power BI file: gofile.me/2kEOD/gTpLsanwy
MS DAX reference: msdn.microsoft.com/en-us/libr...
DAX Fridays Survey: onedrive.live.com/survey?resi...
PREVIOUS VIDEO - DATEDIFF: • DAX Fridays! #17: DATE...
NEXT VIDEO - USERELATIONSHIP: • DAX Fridays! #21: USER...
Looking for a download file? Go to our Download Center: curbal.com/donwload-center
SUBSCRIBE to learn more about Power and Excel BI!
/ @curbalen
Our PLAYLISTS:
- Join our DAX Fridays! Series: goo.gl/FtUWUX
- Power BI dashboards for beginners: goo.gl/9YzyDP
- Power BI Tips & Tricks: goo.gl/H6kUbP
- Power Bi and Google Analytics: goo.gl/ZNsY8l
ABOUT CURBAL:
Website: www.curbal.com
Contact us: www.curbal.com/contact
QUESTIONS? COMMENTS? SUGGESTIONS? You’ll find me here:
► Twitter: @curbalen, @ruthpozuelo
► Google +: goo.gl/rvIBDP
► Facebook: goo.gl/bME2sB
#daxfridays #curbal #SUBSCRIBE
► Linkedin: goo.gl/3VW6Ky

Опубликовано:

 

5 авг 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 69   
@powerbinareal
@powerbinareal Месяц назад
Fico impressionado como um vídeo de 6 de jan. de 2017 não perde sua importância com o tempo. Sempre Estou reaprendendo com vc. Valeu!!! 😎😎😱😱😱😱😱😱💪🏼💪🏼
@CurbalEN
@CurbalEN Месяц назад
🥳🥳
@hajeraabdullah9157
@hajeraabdullah9157 4 года назад
You are an excellent teacher and I am inspired to forward my knowledge like you. Thank you for all your hard work, time and selflessness and sharing your invaluable knowledge. It means a lot. xxx
@CurbalEN
@CurbalEN 4 года назад
And thanks for your feedback! /Ruth
@clemmonswest262
@clemmonswest262 Год назад
Awesome!
@anitashinde7543
@anitashinde7543 3 года назад
Thank you so much for all DAX files
@CurbalEN
@CurbalEN 3 года назад
My pleasure!
@prachitrivedi7928
@prachitrivedi7928 3 года назад
Thank you very much Ruth !! This video helped me in solving one my long outstanding issue with org hierarchical slicer
@CurbalEN
@CurbalEN 3 года назад
Wonderful to hear :)
@exceliarmus7858
@exceliarmus7858 2 года назад
Thank you!
@Lixia123
@Lixia123 7 лет назад
Very useful to solve complex buiness problem, thanks!
@CurbalEN
@CurbalEN 7 лет назад
+Lixia Zhang Hi Lucia! Glad you found it useful and thanks for the feedback! /Ruth
@walidkhlil2872
@walidkhlil2872 4 года назад
great thanks
@lifeuncut3463
@lifeuncut3463 2 года назад
Very useful
@chumito6
@chumito6 3 года назад
Hi Ruth! thank you for this video. I've followed every step and everything worked perfectly regarding the columns. However, when I go back to the visuals' pane, I do not see any hierarchy and therefore I cannot use it for creating drill-down visuals. Please help!
@asimabdulwahab9444
@asimabdulwahab9444 6 лет назад
Very nice
@CurbalEN
@CurbalEN 6 лет назад
+Asim Abdul Wahab Thanks and Happy Friday :) /Ruth
@rrrprogram8667
@rrrprogram8667 6 лет назад
Nice one ruth
@CurbalEN
@CurbalEN 6 лет назад
+RRR program Thanks ;) /Ruth
@SmartBimson
@SmartBimson 7 лет назад
Hello Ruth ! This video is very interesting and I would like to ask you if you can make a follow up video with an example how to use this Dax expressions or to take this example further and to show us how to use this function more detailed ... And I'm looking forward today's Dax Friday 👍🏻👍🏻👍🏻 🎉👍🏻
@CurbalEN
@CurbalEN 7 лет назад
+SmartBimson Hi Absolutely, is there any specific scenario you had in mind? /Ruth
@SmartBimson
@SmartBimson 7 лет назад
Curbal hello Ruth, yes kind of but I'm afraid I'm not able to explain it properly in English. Could be cool if you can do a general example with the use of power bi filters and then I can ask my questions based on your cool video ! Thanks so much, appreciate it a lot 👍🏻👍🏻👍🏻
@CurbalEN
@CurbalEN 7 лет назад
+SmartBimson ok, it will take some weeks as I have other videos schedule but as soon as I can I will make it for you! :) /Ruth
@SmartBimson
@SmartBimson 7 лет назад
Curbal that's so cool !!! Can't wait anymore already 😉🍾 have a great weekend Ruth !
@CurbalEN
@CurbalEN 7 лет назад
+SmartBimson The same to you and many thanks for watching and supporting my videos! You are the best! 😊 /Ruth
@kummithavenkatareddy2302
@kummithavenkatareddy2302 2 года назад
You are my PowerBI Guruvu(Teacher).
@MarkHinderliter
@MarkHinderliter 6 лет назад
Ruth I like this one. Any chance of you showing how to put the PATHCONTAINS together with a filter like you did with the Top N? I'm thinking of org structure, it'd be nice to see how you could select a person in an org and see everyone who rolls up to them.
@CurbalEN
@CurbalEN 6 лет назад
Great idea, noted ;) Happy new year! /Ruth
@alexkelly757
@alexkelly757 5 лет назад
Hello, how do you use the DAX hierarchy in the report view? I've created a 4 level hierarchy using DAX and was expecting to be able to drag this into a report but it doesnt show in the report view.
@CurbalEN
@CurbalEN 5 лет назад
Best way to get support is to contact the power bi community (community.powerbi.com). Make sure you post as much info as possible. /Ruth
@shivamsince91
@shivamsince91 5 лет назад
Ruth, it's amazing. Just want to know, how can we implement security on these hierarchical things.
@CurbalEN
@CurbalEN 5 лет назад
Mmmm that is a question for the Power Bi Community. Make sure you post as many details as possible of your data and model. /Ruth
@poorvaawale
@poorvaawale 3 года назад
Hi Ruth, I have a file in which a column is in hierarchical format I want to spilt it into parent child format in different column.. How to do this any idea?
@paulcooper5330
@paulcooper5330 6 лет назад
You just solved a particular problem. I have been trying to work out a way to iterate down through boms to find if software sits in a particular bom. This will work.
@CurbalEN
@CurbalEN 6 лет назад
Yey! Glad it was useful :) /Ruth
@paulcooper5330
@paulcooper5330 6 лет назад
I may have drawn a blank Ruth. I will keep trying. My issue is that the Component are used in multiple Parents and the bom hierarchy has up to 6 levels. In short, what I am trying to do is to create a query that flags a Parent that has certain Software down any level in the hierarchy. I will keep trying unless you have a suggestions (like give up) :)
@CurbalEN
@CurbalEN 6 лет назад
Have you tried asking in the power bi community? Post some sample data too! /Ruth
@paulcooper5330
@paulcooper5330 6 лет назад
Curbal, I found a nice solution on BIAccountant blog from last year. Quite complex PQ with some trick M that iterates down the levels. Still stress testing but seems to work.
@CurbalEN
@CurbalEN 6 лет назад
Excellent and Thanks for sharing :) /Ruth
@amarsale322
@amarsale322 4 года назад
Hey Ruth, is it possible to view parent & child in same visual (no drilling) and the parent showing sum of all its children instead of only the selected children? For example, if i want to see the count of employees in Cities like London, Leeds, Birmingham and also in all of England and Europe in same visual with no drill down
@CurbalEN
@CurbalEN 4 года назад
Try using the matrix visual with the stepped option on (or off can’t remember which) /Ruth
@aks541
@aks541 7 лет назад
For practicing purpose want to get the excel which you'd used here. Where to get the excel?
@CurbalEN
@CurbalEN 7 лет назад
+Ak S Hi, you can find it in the description box. /Ruth
@10806628
@10806628 4 года назад
Hi, you forgot to show the values associated with the hierarchy. Do you simply attach the values and it will just show the values in a collapsible manner?
@devidodge
@devidodge 5 лет назад
Thanks Ruth, how can we apply this to a 4 level hierarchy?
@CurbalEN
@CurbalEN 5 лет назад
You should, but post the details of your case in the Power bi Community (Community.powerbi.com) to get detailed help. /Ruth
@Sharvan029
@Sharvan029 6 лет назад
Hi Ruth, How can i find out the sum of number of Child iD's per Parent ID?
@CurbalEN
@CurbalEN 6 лет назад
+sharvan hameed Hi! Let me do a Dax Friday video of it! /Ruth
@shwetadalal389
@shwetadalal389 2 года назад
I am not able to download the excel file. I want to use it for practice.
@rajibmahmud19
@rajibmahmud19 6 лет назад
hi Ruth, thanks for the video. Would you be able to share the PBI file. For some reason I am unable to download the file from the link you shared.
@CurbalEN
@CurbalEN 6 лет назад
Oh, it is probably broken. I will fix it tomorrow! /Ruth
@rajibmahmud19
@rajibmahmud19 6 лет назад
Thanks
@CurbalEN
@CurbalEN 6 лет назад
It is working, can you please try again? /ruth
@kanthu85
@kanthu85 4 года назад
What about component has duplicate mean multiple parent hierarchy..
@MartinMunoa
@MartinMunoa 4 года назад
Hi Ruth! I think this solution here only works when you have just one parent per child. I need to do a Bill of materiales where there are many childs that are used on multiple parents (For example a model of screw -Child- that is used in lots of final products -Parents-, or the delivery box -We use the same one for multiple products-). If you do know how to do it, could you make a video about it? Thank you and thanks for this great channel!
@kinoby4me2
@kinoby4me2 4 года назад
Yes, please let me know if you have a solution for child items having multiple parents....currently results in an #ERROR
@glendierick7983
@glendierick7983 Год назад
Did you find a solution?
@rikabchand6036
@rikabchand6036 4 года назад
112|23|18|1 As per my understanding when we use PATH function, 112 denotes the Org Lvl 1 and 23 denotes Org Lvl 2 and so on. Can this be bi-directional like below, 1|18|23|112 1 denotes last Org Lvl N and 18 denotes Org Lvl N-1 and so on. Basically I want to have Child-Parent Hierarchy. The reason he if one persons belongs to 2 difference regions how we can take care of this using PATH function. Basically what I need is Child-Parent relationship instead of Parent-Child relation ship.
@pallavijain3957
@pallavijain3957 2 года назад
Hi Ruth...You are excellent... your videos are very informative and unique I have a query...in Parent child Dax If we want to repeat emp key and Mgr key...then there is sn error. Issue is...that employee A is reporting to emp x.. But now he is reporting to Emp Z We want to keep both values. How can we solve this..
@Golden_Tortoise
@Golden_Tortoise 6 лет назад
Very good video! Thank you so much! Suggestion: It is not very easy to follow a data set that has computer-like values (MMK115/1). It would be better if the values were more human readable such as CEO, Vice President, Manager, Employee etc. for someone who does not even know what is a parent or child function. Other than that, thank you!
@CurbalEN
@CurbalEN 6 лет назад
+Brendan Crowther Ah, true! Thanks for the feedback, I will take it into account for next videos :) /Ruth
@MKJainStatistics
@MKJainStatistics 4 года назад
Hi Ruth, very clear and crisp explanation. I am working on developing a data warehouse on manufacturing process and was struggling to get real world example on product traceability. Whenever search for parent child hierarchy topic most of the time we come across organization kind, but this one I could relate very well. Thanks for that.
@CurbalEN
@CurbalEN 4 года назад
Perfect! Happy it worked for you :) /Ruth
@sauravsinha6939
@sauravsinha6939 2 года назад
Can you please explain as how to use this relationship in Viz and show some meaningful presentations
@dylanfan9746
@dylanfan9746 6 лет назад
Hello Ruth, Thank you for your awesome DAX Fridays! video series and other intermediate Power BI videos, keep them coming! I have a question regarding Hierarchy which I can't wrap my head around. Hopefully you, or anyone in the Power BI community, could help me understand this. I can see how powerful utilizing Hierarchy could help in modelling data better and providing a fast and efficient way of retrieving data with DAX. (Especially when dealing with BOM data sets) However, I have confusion over how hierarchy works over these 3 videos: 1) Creating and working with hierarchies in Power BI (3-11g): ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-q8WDUAiTGeU.html 2) Create Hierarchies in Power Query: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-oEOaqyaZTZw.html 3) DAX Fridays! #20: Parent and Child Functions -Hierarchies: This Video. My confusions are: 1) Does all the above 3 videos provide the same outcome, just with different methods? If so, wouldn't (1) be a simpler form of creating hierarchy groups in Data Modeling and provide filtering capabilities when using the 'CALCULATE()' function? 2) How can I use any of these above methods, create a hierarchy data model, and utilize other DAX functions such as 'RELATED()', 'RELATEDTABLE()', 'USERELATIONSHIP()' etc. in the 'CALCULATE()' function filtering ability to calculate what I want? 3) Does it mean that having Hierarchies will eliminate my need to calculate certain results because of it's dynamic data drilling down abilities? Hope that I am phrasing my question in a fathomable way. Thank you very much for your wonderful work and I am eager to receive your response on this as it definitely will tremendously help me in my work to create data models which DAX functions will shine!
@CurbalEN
@CurbalEN 6 лет назад
Thanks for taking the time to write such a detailed comment! My time to answer it is unfortunately a bit limited, but think of it like this, different scenarios will require different approaches and what the Power BI team does is giving us different tools to solve them. All methods are valid depending on your situation. For a more detailed answer, I encourage you to re-post this in the power bi community where others can also chip-in. Thanks again! /Ruth
@dylanfan9746
@dylanfan9746 6 лет назад
Thank you Ruth for taking your time to reply my queries. I will take this up to the community. 😁
@CurbalEN
@CurbalEN 6 лет назад
The pleasure is all mine :) /Ruth
Далее
DAX Fridays! #21: USERELATIONSHIP
8:53
Просмотров 44 тыс.
Мой инстаграм: v1.ann
00:13
Просмотров 51 тыс.
Я НЕ ОЖИДАЛ ЭТОГО!!! #Shorts #Глент
00:19
ПОМОГЛА НАЗЫВАЕТСЯ😂
00:20
Просмотров 804 тыс.
DAX Fridays! #27: RELATED vs RELATEDTABLE
8:48
Просмотров 61 тыс.
DAX Fridays! #5: CALCULATE (Part 1)
14:29
Просмотров 113 тыс.