Get certified in Microsoft Fabric—for free! For a limited time, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare now
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!
Check out the October 2024 Power BI update to learn about new features.
Learn from experts, get hands-on experience, and win awesome prizes.
User | Count |
---|---|
33 | |
15 | |
14 | |
13 | |
9 |
User | Count |
---|---|
60 | |
23 | |
22 | |
19 | |
13 |