Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
Hello friends,
I have a challenged question.
I have this data:
FirstLevelActivitycode | SecondLevelActivitycode | ThirdLevelActivitycode | Label | ParentCode |
A | B | Naxos | A|B | |
A | C | Mikonos | A|C | |
A | C | F | Athene | A|C | F |
A | D | Piros | A|D | |
A | Salamina | A| | ||
A | C | G | Athos | A|C | G |
A | E | Lefkada | A|E |
I already use the function Path and Pathitem to get the firstlevelactivitycode and second ...
My goal is to have this data:
FirstLevelActivitycode | SecondLevelActivitycode | ThirdLevelActivitycode | Label | ParentCode | FirstLevelLabel | SecondLevelLabel | ThirdLevelLabel |
A | B | Naxos | A|B | Salamina | Salamina | Naxos | ||
A | C | Mikonos | A|C | Salamina | Salamina | Mikonos | ||
A | C | F | Athene | A|C | F | Salamina | Salamina | Mikonos | Salamina | Mikonos | Athene |
A | D | Piros | A|D | Salamina | Salamina | Piros | ||
A | Salamina | A | Salamina | ||||
A | C | G | Athos | A|C | G | Salamina | Salamina | Mikonos | Salamina | Mikonos | Athos |
A | E | Lefkada | A|E | Salamina | Salamina | Lefkada |
The idea now is to say that for example if secondlevel & third level, memorize this label for this [A] FirstLevelActivitycode, and put the label in all the rows of FirstLevelLabel.
I think of something like that put does not work correctly:
Hi @Anonymous
I have understood your requirement, but I have a query to confirm with you regarding your data, regarding the FirstLevelActivitycode column "A1" and the "O_738" mentioned in your formula, What is the form of their ParentCode? Is it O_738|xxx, or O?
Best Regards,
Yulia Xu
Hello,
any solution for that.
thank you 🙂
Salem
Hi,
Thank you for your response.
The firstlevelactivtycode is one level: A or B ...
I have the parentcode instead that contains the different level with |.
But my main issue is to divide the label, the levelactivitycode is already divided.
Best regards,
Salem
User | Count |
---|---|
15 | |
9 | |
8 | |
6 | |
5 |
User | Count |
---|---|
31 | |
18 | |
15 | |
7 | |
5 |