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!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
hi guys,
I have a weird scenario that I never encountered and I am seeking some precious help.
I am building a baseline for revenue caluclated under a specific timeframe (10/07/24-13/07/2024) and to do so I have build the following formula.
Solved! Go to Solution.
Hi @zanottiluca - create below measure to dynamically filter the products based on the user's selection.
tot revenue baseline =
CALCULATE(
SUMX(
FILTER(
ALL('Date'[Date]),
'Date'[Date] >= DATE(2023, 07, 10) &&
'Date'[Date] <= DATE(2024, 07, 13)
),
[Revenue]
),
KEEPFILTERS(VALUES('Products'[Product]))
)
Hope it helps.
Proud to be a Super User! | |
Hi,
I do not understand. If you are selecting dates in a slicer, then why are you specifying thoe dates in the filter argumet of the CALCULATE() function.
Hi @zanottiluca - create below measure to dynamically filter the products based on the user's selection.
tot revenue baseline =
CALCULATE(
SUMX(
FILTER(
ALL('Date'[Date]),
'Date'[Date] >= DATE(2023, 07, 10) &&
'Date'[Date] <= DATE(2024, 07, 13)
),
[Revenue]
),
KEEPFILTERS(VALUES('Products'[Product]))
)
Hope it helps.
Proud to be a Super User! | |
thanks @rajendraongole1 that worked indeed, quiet sure I tried KEEPFILTERS but not sure I used VALUES.
Amazing
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!
| User | Count |
|---|---|
| 103 | |
| 80 | |
| 63 | |
| 50 | |
| 45 |