Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
Hello,
I have this column :
DFS-PI1
DFS-PI2
01234
P393
BLABLABLA
And I want to create a column that extract the last number only if it starts with "DFS-PI", otherwise show null. The result would be:
1
2
null
null
null
I can't find a way to do that. Anyone can help me please?
Thank you
Solved! Go to Solution.
Hi @Anonymous ,
In Power Query you would create a new column with the following calculation:
if
Text.StartsWith([yourColumnName], "DFS-PI")
then
Text.End([yourColumnName], 1)
else
null
Pete
Proud to be a Datanaut!
Hi @Anonymous ,
In Power Query you would create a new column with the following calculation:
if
Text.StartsWith([yourColumnName], "DFS-PI")
then
Text.End([yourColumnName], 1)
else
null
Pete
Proud to be a Datanaut!
Hi @Anonymous
This should work:
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 2 |
| User | Count |
|---|---|
| 11 | |
| 10 | |
| 7 | |
| 7 | |
| 6 |