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!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
Hey all, I have a simple DAX formula in Excel Powerpivot (NOT pbi)
=calculate(sum(table[Sales])
I want to filter it so that if [X Column] contains the string "pablo", only then will the sum be calcaulted.
I've tried a bunch of different methods
For some reason 'containsstring' is not a function available
Solved! Go to Solution.
@doubleclick Try:
=
CALCULATE (
sum(table[Sales]),
FILTER (table, FIND ( "Pablo", Table[X Column],, 0 ) <> 0 )
)
Note that the function FIND is case-sensitive. Check this link for details:
https://www.sqlbi.com/articles/from-sql-to-dax-string-comparison/
B.
@doubleclick Try:
=
CALCULATE (
sum(table[Sales]),
FILTER (table, FIND ( "Pablo", Table[X Column],, 0 ) <> 0 )
)
Note that the function FIND is case-sensitive. Check this link for details:
https://www.sqlbi.com/articles/from-sql-to-dax-string-comparison/
B.
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.
User | Count |
---|---|
10 | |
9 | |
7 | |
4 | |
4 |