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 have a fact table that contains all of the columns: StmnUnits, TransDate and StmnDate. I want to sum StmnUnits if the TransDate is before or equal to the last date of the month that is being viewed (via Month & Year slicer) and the StmnDate is after the last day of the month that is being viewed ( Max(Dates[Date]) ). This is my measure formula:
Hi,
- is Dates[Date] connected to the Transactions table? If so, to which field?
- Don't do 2 filters, just combine them
FILTER(
Transactions,
Transactions[TransDate] <= MAX( Dates[Date] &&
Transactions[StmnDate] > MAX(Dates[Date])
)
Hi,
Thank you for your reply. There is an active relationship between Transactions[TransDate] and Dates[Date] and an inactive relationship between Transactions[StmnDate] and Dates[Date].
Ok, when you have this relation between TransDate and Date then you need to write:
VAR MaxSelectedDate = MAX(Dates[Date])
FILTER(
ALLSELECTED(Transactions),
Transactions[TransDate] <= MaxSelectedDate &&
Transactions[StmnDate] > MaxSelectedDate)
)
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.
User | Count |
---|---|
15 | |
15 | |
11 | |
10 | |
10 |