The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
Hello guys!
I have a task that seems simple, but have no idea how to solve this. I have a table with names of services (field "name"), some services are subservices of services inside that same table. I want to add column to that table with the name of parent service by it's "parent id". Could you please tell how i can do it?
Thanks!
Solved! Go to Solution.
Hi @Anonymous
This DAX will create your column
Parent Name = CALCULATE(MAXX('Servises','Servises'[name]), FILTER('Servises', 'Servises'[id] = EARLIER('Servises'[parent_id])))
Regards
Phil
Proud to be a Super User!
Hi @Anonymous
This DAX will create your column
Parent Name = CALCULATE(MAXX('Servises','Servises'[name]), FILTER('Servises', 'Servises'[id] = EARLIER('Servises'[parent_id])))
Regards
Phil
Proud to be a Super User!
Thanks a lot, it did create needed column!
User | Count |
---|---|
82 | |
82 | |
35 | |
32 | |
32 |
User | Count |
---|---|
93 | |
79 | |
62 | |
54 | |
51 |