Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
Hello,
I used following to search for a material with over several characters and as I found it is correct to use asterisk : 3L6*
I need a table with materialnumbers and have the option through a measure to filter the 3L6* Materials out if needed, next in a column.
It looks like this:
Solved! Go to Solution.
Hi,
This measure works
Measure = COUNTROWS(FILTER(VALUES(Table1[Material]),LEFT(Table1[Material],3)="5ML"))
The answer is 37
You are welcome. If my previous reply helped, please mark it as Answer. * is a wildcard in MS Excel (not in the DAX language)
Hi,
Could you share a dataset and show the expected result.
Hello @Ashish_Mathur,
thank you very much. I prepared sample Data and my search still seems to be not right. I also provide a pbix and a excel file as source:
https://drive.google.com/drive/folders/1BUgDmH60tY0kTgAecreS0hkfXsuI5We-?usp=sharing
Best.
Hi,
This measure works
Measure = COUNTROWS(FILTER(VALUES(Table1[Material]),LEFT(Table1[Material],3)="5ML"))
The answer is 37
You are welcome. If my previous reply helped, please mark it as Answer. * is a wildcard in MS Excel (not in the DAX language)
okay, @Ashish_Mathur ,
what happens if "5ML" would be in a middle of a text? Like "43jk5ML24". In that case left or right function cannot find that part.
Use the Search function - SEARCH function (DAX) - DAX | Microsoft Docs
User | Count |
---|---|
106 | |
89 | |
81 | |
76 | |
73 |
User | Count |
---|---|
112 | |
104 | |
96 | |
74 | |
66 |