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, I have a filed that contains part numbers. Some of the part numbers start with a letter and I would like to be able to filter out all part numbers that begin with a letter.
Is it possible to right a measure to do this? I haven't had much luch.
Solved! Go to Solution.
Hi @TroyKurt ,
you can do it like this:
With kind regards from the town where the legend of the 'Pied Piper of Hamelin' is at home
FrankAT (Proud to be a Datanaut)
Hi @TroyKurt,
Can you please share some dummy data and expected results to test? It should help us clarify your data structures and test to coding formula.
How to Get Your Question Answered Quickly
Regards,
Xiaoxin Sheng
Hi @TroyKurt ,
you can do it like this:
With kind regards from the town where the legend of the 'Pied Piper of Hamelin' is at home
FrankAT (Proud to be a Datanaut)
You can use LEFT to take the first part of a text string.
For example:
FILTER ( TableName, LEFT ( TableName[ColumnName], 1 ) <> "A" )
How do you make it filter all letters, not just "A"?
Another option would be to list all the letters you want to exclude:
FILTER ( TableName, NOT ( LEFT ( TableName[ColumnName], 1 ) IN { "A", "B", "C", ..., "Z" ) )
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 | |
97 | |
80 | |
69 | |
59 |
User | Count |
---|---|
150 | |
119 | |
104 | |
87 | |
67 |