Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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"
)
Thank you!
Hi @Midway
Please try
=
CALCULATE (
SUM ( Sales[SalesAmount] ),
DATESMTD ( DimDate[Date] ),
Sales[SaleStatus] = "Active"
)
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
47 | |
26 | |
19 | |
14 | |
10 |
User | Count |
---|---|
58 | |
50 | |
44 | |
19 | |
19 |