Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register 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
User | Count |
---|---|
123 | |
76 | |
63 | |
50 | |
50 |
User | Count |
---|---|
175 | |
125 | |
60 | |
60 | |
58 |