The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
Dears
AM trying to count cells with specific text inside it
i have project column and i want to count cells that contains specifc word which is "enhancement" inside this cell in spesific column
thanx
Solved! Go to Solution.
@Anonymous , You can use
https://docs.microsoft.com/en-us/dax/containsstring-function-dax
calculate(count([Names]),CONTAINSSTRING([Names],"enhancement"))
or
https://docs.microsoft.com/en-us/dax/search-function-dax
https://docs.microsoft.com/en-us/dax/find-function-dax
You can try this approach
Projects with Enhancement = COUNTROWS(Filter(Table, SEARCH("Enhancement", Table[Project], , 0)>0))
If this works for you, please mark it as the solution. Kudos are appreciated too. Please let me know if not.
Regards,
Pat
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
both solutions working for me
thanx
You can try this approach
Projects with Enhancement = COUNTROWS(Filter(Table, SEARCH("Enhancement", Table[Project], , 0)>0))
If this works for you, please mark it as the solution. Kudos are appreciated too. Please let me know if not.
Regards,
Pat
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
Thanks for the solution, But it count the header also?
@Anonymous , You can use
https://docs.microsoft.com/en-us/dax/containsstring-function-dax
calculate(count([Names]),CONTAINSSTRING([Names],"enhancement"))
or
User | Count |
---|---|
57 | |
54 | |
53 | |
48 | |
30 |
User | Count |
---|---|
177 | |
88 | |
70 | |
48 | |
48 |