Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin 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.
Hi! I'm looking for help on how to write a 'does not start with' DAX expression.
This is what I have right now, but doesn't seem to work:
Total Sales & Credit Memos =
CALCULATE(
[Total Amount],
(LEFT('CONSOL GLENTRY'[Document No_], 2) <> "GJ"
)
I'm looking to calculate all documents that 'do not' start with "GJ".
Any help would be appreciated!
Christina
Solved! Go to Solution.
@Anonymous wrap in MAX
Total Sales & Credit Memos =
CALCULATE(
[Total Amount],
(LEFT(MAX('CONSOL GLENTRY'[Document No_]), 2) <> "GJ"
)
@Anonymous wrap in MAX
Total Sales & Credit Memos =
CALCULATE(
[Total Amount],
(LEFT(MAX('CONSOL GLENTRY'[Document No_]), 2) <> "GJ"
)
hi @Anonymous
try like:
Total Sales & Credit Memos =
CALCULATE(
[Total Amount],
FILTER(
ALL('CONSOL GLENTRY'[Document No_]),
LEFT('CONSOL GLENTRY'[Document No_], 2) <> "GJ"
)
)
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 |
|---|---|
| 8 | |
| 6 | |
| 3 | |
| 3 | |
| 3 |
| User | Count |
|---|---|
| 11 | |
| 9 | |
| 8 | |
| 7 | |
| 6 |