The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
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"
)
)
User | Count |
---|---|
28 | |
11 | |
8 | |
6 | |
5 |
User | Count |
---|---|
35 | |
14 | |
12 | |
9 | |
7 |