Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi Experts
How would you return the number value in the following string (need the left numbers before the "-")
Column Result
0 - 1 week 0
52 - 53 week 52
1 - 6 week 1
6 - 7 week 6
Solved! Go to Solution.
Hi @Anonymous ,
I used the formula you mentioned and get the correct result.
Not sure what error you have got by this formula.
I attach my sample below for your reference.
Best Regards,
Community Support Team _ kalyj
If this post helps, then please considerAccept it as the solution to help the other members find it more quickly.
Hi @Anonymous ,
Is your problem solved?? If so, Would you mind accept the helpful replies as solutions? Then we are able to close the thread. More people who have the same requirement will find the solution quickly and benefit here. Thank you.
Best Regards,
Community Support Team _ kalyj
Hi @Anonymous ,
I used the formula you mentioned and get the correct result.
Not sure what error you have got by this formula.
I attach my sample below for your reference.
Best Regards,
Community Support Team _ kalyj
If this post helps, then please considerAccept it as the solution to help the other members find it more quickly.
Hi @Anonymous ,
Let me know how it goes at your end with the solution I have provided above - which is the Power Query way 🙂
Hi @Anonymous ,
You can get this transformed in Power Query easily.
I am taking the data as you shared above as follows:
Now select your column and from the top ribbon Transform --> Extract --> Text Before Delimiter
A new window appears, where enter your delimiter as "-" and then click OK
Finally you get the desired result:
Hope the solution helps.
Hi - Have this but is noting working
Hi Pragati 11 - firstly, apologies - this has to be a calculated column... My fault.. I can do this the PQ way...
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
111 | |
99 | |
80 | |
64 | |
57 |
User | Count |
---|---|
145 | |
111 | |
92 | |
84 | |
66 |