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!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hello Comunity,
Actaul i have the challange, an value to split whit a dynamic value in the M-Code in Power Query.
Per Example:
| Text | Length Number | Solution |
America30 | 2 | 30 |
| Australia300 | 3 | 300 |
| China48500 | 5 | 48500 |
| Africa4 | 4 | 4 |
| Europe1548793 | 7 | 1548793 |
How can i do that?
Simon
Solved! Go to Solution.
Hi Simon,
This should work fine in a new custom column:
Text.End([Text], [Length Number])
Pete
Proud to be a Datanaut!
Hi Simon,
This should work fine in a new custom column:
Text.End([Text], [Length Number])
Pete
Proud to be a Datanaut!
Thank for the answer.
And whit the length? ... each Text.End(_, value(length number),...
Splitter.SplitTextByCharacterTransition(each not List.Contains({"0".."9"},_),{"0".."9"})([Text])
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 19 | |
| 9 | |
| 8 | |
| 7 | |
| 6 |