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.
Hi,
I wish to understand this measure, especially the part in AND():
@Yamabushi Please find the summary
MAX(DimDate[FullDateAlternateKey]): This part finds the maximum (latest) date in the DimDate table.
MAX(DimDate[FullDateAlternateKey]) - 2: Subtracting 2 days from the latest date gives you a date that is 2 days ago.
DimDate[FullDateAlternateKey] > MAX(DimDate[FullDateAlternateKey]) - 2: This condition filters dates that are greater than 2 days ago.
DimDate[FullDateAlternateKey] <= MAX(DimDate[FullDateAlternateKey]): This condition filters dates up to the latest date.
AND(...): The AND function combines the two conditions, ensuring that the date is within the last 2 days.
CALCULATE([Total Sales], ...): Finally, the CALCULATE function applies these date filters to the [Total Sales] measure, giving you the total sales for the last 2 days
And accept as solutin if it helps
Proud to be a Super User! |
|
Hi,
thank you, @bhanu, but that was not what I was asking. I understand what each function individually does. My question specifically relates to evaluation context:
Thanks!
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the September 2025 Power BI update to learn about new features.