Forum Discussion
Assistance with Dax Formula
- 8 years ago
Thanks to your help, I was able to get the Dax syntax that I needed. The formula that seems to be working is:
TotalPending2 =
CALCULATE (
SUM ( SalesOrderLines[Net amount] ),
SalesOrderLines[Line status] <> "Invoiced",
ALLEXCEPT (SalesOrderLines,SalesOrderLines[Customer]), FILTER ( ALL ( SalesOrderLines[Created date] ), [Created date] <= [LastD] )
)Again, I'm finding the All and the AllExcept a little confusing. Thank you again for your help.
Give this a try...Just removing filters from Customer column using ALL
TotalPending =
CALCULATE (
SUM ( SalesOrderLines[Net amount] ),
SalesOrderLines[Line status] <> "Invoiced",
FILTER ( ALL ( SalesOrderLines[Created date] ), [Created date] <= [LastD] ),
ALL ( SalesOrderLines[Customer] )
)Zubair,
Thank you. However the formula still continues to respond to the Customer filter (slicer).
- nandvroe8 years agoFrequent Visitor
Thanks to your help, I was able to get the Dax syntax that I needed. The formula that seems to be working is:
TotalPending2 =
CALCULATE (
SUM ( SalesOrderLines[Net amount] ),
SalesOrderLines[Line status] <> "Invoiced",
ALLEXCEPT (SalesOrderLines,SalesOrderLines[Customer]), FILTER ( ALL ( SalesOrderLines[Created date] ), [Created date] <= [LastD] )
)Again, I'm finding the All and the AllExcept a little confusing. Thank you again for your help.