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!Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
Hi everyone!
I have a static date filter in one measure.
For ecample: Today() -1.
But I need that this filter, Today()-1, calculate about selction date.
I need this, because some measures are specific to that date and others are accumulated until that date.
In summary, I need a variable / measure associated with the user's date selection.
Solved! Go to Solution.
Hi @gabrielvigo,
Try these formulas below.
Test =
CALCULATE (
SUM ( Supply_Chain[Operations Stockouts] );
FILTER (
ALL ( 'Calendar'[Fecha] );
'Calendar'[Fecha] = SELECTEDVALUE ( 'Calendar'[Fecha] )
)
)
Test2 =
CALCULATE (
SUM ( Supply_Chain[Operations Stockouts] );
FILTER (
ALL ( 'Calendar'[Fecha] );
'Calendar'[Fecha] <= SELECTEDVALUE ( 'Calendar'[Fecha] )
)
)
Best Regards,
Dale
So typically you do this with a slicer and something like MAX or SELECTEDVALUE. "What If" measures were created for this purpose.
Hi.
No, I can't calculate them.
I need 2 calculations:
Hi @gabrielvigo,
Try these formulas below.
Test =
CALCULATE (
SUM ( Supply_Chain[Operations Stockouts] );
FILTER (
ALL ( 'Calendar'[Fecha] );
'Calendar'[Fecha] = SELECTEDVALUE ( 'Calendar'[Fecha] )
)
)
Test2 =
CALCULATE (
SUM ( Supply_Chain[Operations Stockouts] );
FILTER (
ALL ( 'Calendar'[Fecha] );
'Calendar'[Fecha] <= SELECTEDVALUE ( 'Calendar'[Fecha] )
)
)
Best Regards,
Dale
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the February 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 52 | |
| 50 | |
| 34 | |
| 15 | |
| 14 |
| User | Count |
|---|---|
| 92 | |
| 77 | |
| 41 | |
| 26 | |
| 25 |