The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi everyone,
I am still learning PowerBi and I am struggling to find the right formula that will allow me to achieve what is below:
First column is what I have and second and third columns are what I want:
OwnedBy_ReviewedBy | OwnedBy | ReviewedBy | ||
Owned By:John, Reviewed By:David | John | David |
Your help is greatly appreciated!
Thanks
Solved! Go to Solution.
@ Try:
OwnedBy Column =
VAR __Path = SUBSTITUTE([OwnedBy_ReviewedBy],":","|")
VAR __Path1 = SUBSTITUTE(__Path,",","|")
RETURN
PATHITEM(__Path1, 2)
ReviewedBy Column =
VAR __Path = SUBSTITUTE([OwnedBy_ReviewedBy],":","|")
VAR __Path1 = SUBSTITUTE(__Path,",","|")
RETURN
PATHITEM(__Path1, 4)
Hi @Anonymous ,
You could follow @Greg_Deckler to create calculated columns.
Here is my workaround to add custom columns in Power Query:
=Text.BetweenDelimiters([OwnedBy_ReviewedBy],"Owned By:", ", Reviewed")
=Text.AfterDelimiter([OwnedBy_ReviewedBy],"Reviewed By:")
Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@ Try:
OwnedBy Column =
VAR __Path = SUBSTITUTE([OwnedBy_ReviewedBy],":","|")
VAR __Path1 = SUBSTITUTE(__Path,",","|")
RETURN
PATHITEM(__Path1, 2)
ReviewedBy Column =
VAR __Path = SUBSTITUTE([OwnedBy_ReviewedBy],":","|")
VAR __Path1 = SUBSTITUTE(__Path,",","|")
RETURN
PATHITEM(__Path1, 4)
User | Count |
---|---|
78 | |
74 | |
43 | |
32 | |
28 |
User | Count |
---|---|
104 | |
93 | |
51 | |
51 | |
46 |