The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
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
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the August 2024 Power BI update to learn about new features.
User | Count |
---|---|
110 | |
80 | |
71 | |
51 | |
50 |
User | Count |
---|---|
123 | |
119 | |
76 | |
64 | |
60 |