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!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi, I am calculating a new measure based on a differnent table dateTime value using:
Triggered = (
VAR _Cuur_start = MAX(CalculationsTable[Date])
VAR _Curr_end = MIN(CalculationsTable[Date])
return
calculate(SUM(SRTriggered[NumberOfEvents]),
FILTER(SRTriggered, SRTriggered[Date] >= _Cuur_start),
FILTER(SRTriggered, SRTriggered[Date] <= _Curr_end )))
But it just works when the _Cuur_start equals _Cuur_end (1 day period), while it didn't in case of multipe days.
I'd appreciate if someone can help 🙂
Solved! Go to Solution.
@MohannadSh1996 , Try like
Triggered =
VAR _Cuur_start = MAX(CalculationsTable[Date])
VAR _Curr_end = MIN(CalculationsTable[Date])
return
calculate(SUM(SRTriggered[NumberOfEvents]),
FILTER(all(SRTriggered), SRTriggered[Date] >= _Cuur_start && SRTriggered[Date] <= _Curr_end ))
OR
Triggered =
VAR _Cuur_start = MAX(CalculationsTable[Date])
VAR _Curr_end = MIN(CalculationsTable[Date])
return
calculate(SUM(SRTriggered[NumberOfEvents]),
FILTER(allselected(SRTriggered), SRTriggered[Date] >= _Cuur_start && SRTriggered[Date] <= _Curr_end ))
@amitchandak, I have tried it before, thanks for your answer.
@Greg_Deckler , I do believe it was the problem. Thank you!
Check out the November 2025 Power BI 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!