Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
I have a measure that I need to build that needs to do the following;
Calculate the MTD of Sales and then filter it down by another field Sales status = "Active"
I think the CALCAULATE function can be use here like this;
CALCULATE(SUM(Sales[SalesAmount]), DATESMTD(DimDate[Date])) AND then here I need to filter by another field, SaleStatus.
SalesStatus has two values "Active" and "Cancelled", I need to retrieve rows with SalesStatus = "Active".
Thanks very much for you help!
Solved! Go to Solution.
Hi @Midway
Please try
=
CALCULATE (
SUM ( Sales[SalesAmount] ),
DATESMTD ( DimDate[Date] ),
Sales[SaleStatus] = "Active"
)
Hi @Midway
Please try
=
CALCULATE (
SUM ( Sales[SalesAmount] ),
DATESMTD ( DimDate[Date] ),
Sales[SaleStatus] = "Active"
)
Thank you!
Check out the November 2025 Fabric update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!