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!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
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
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
Check out the November 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 65 | |
| 46 | |
| 43 | |
| 26 | |
| 19 |
| User | Count |
|---|---|
| 198 | |
| 125 | |
| 102 | |
| 69 | |
| 53 |