Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
I want to search for first 5 letters of a given 20-30 letters string, if it matches then calculate the sales for those 5 letters how can I write this DAX measure?
Solved! Go to Solution.
@Anonymous @az38 Thanks for your answers but the below DAX helped me to get to what I required:
try the below:
@Anonymous @az38 Thanks for your answers but the below DAX helped me to get to what I required:
Hi @Anmolgan
see the LEFT function https://docs.microsoft.com/en-us/dax/left-function-dax
so, try something like this
=calculate(sum(Table[Sales]);Table[ColumnSearch]='abcdef')
do not hesitate to give a kudo to useful posts and mark solutions as solution
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 97 | |
| 76 | |
| 52 | |
| 51 | |
| 46 |