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.
Hi.
I've created a working DAX formula, that I now need to add an additional filter to.
Working:-
Solved! Go to Solution.
Sorry I see it now! You can only have one filter directly inside TOTALMTD which is why your first one uses calculate.
Try:
ReleasedOrderAmount MTD =
CALCULATE (
TOTALMTD ( SUM ( SalesOrder[LineAmountLCY] ), SalesOrder[OrderDate] ),
USERELATIONSHIP ( SalesOrder[No], Items[No] ),
FILTER ( SalesOrder, SalesOrder[Status] = "Released" )
)
+ CALCULATE (
TOTALMTD (
SUM ( SalesOrderArchive[LineAmountLCY] ),
SalesOrderArchive[DocumentDate],
USERELATIONSHIP ( SalesOrderArchive[No], Items[No] )
),
FILTER ( SalesOrderArchiveHdr, SalesOrderArchiveHdr[No] > "SO01612" )
)
Hi. Thanks for the reply.
I don't think its quite right as my error has now changed to the sections highlighted and underlined in red:=
Sorry I see it now! You can only have one filter directly inside TOTALMTD which is why your first one uses calculate.
Try:
ReleasedOrderAmount MTD =
CALCULATE (
TOTALMTD ( SUM ( SalesOrder[LineAmountLCY] ), SalesOrder[OrderDate] ),
USERELATIONSHIP ( SalesOrder[No], Items[No] ),
FILTER ( SalesOrder, SalesOrder[Status] = "Released" )
)
+ CALCULATE (
TOTALMTD (
SUM ( SalesOrderArchive[LineAmountLCY] ),
SalesOrderArchive[DocumentDate],
USERELATIONSHIP ( SalesOrderArchive[No], Items[No] )
),
FILTER ( SalesOrderArchiveHdr, SalesOrderArchiveHdr[No] > "SO01612" )
)
Spot on.
Thanks!
User | Count |
---|---|
14 | |
11 | |
8 | |
6 | |
5 |
User | Count |
---|---|
28 | |
18 | |
13 | |
7 | |
5 |