Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register 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!
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
17 | |
10 | |
10 | |
8 | |
6 |
User | Count |
---|---|
20 | |
17 | |
16 | |
13 | |
10 |