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!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount 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