Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
The strange thing that I cant make one measure working. The first part of the calculation (Actual Sprint) shows correct data, but the second part which should be the previous sprint value, returns to the actual result. The result calculation should follow the red framed calculation (based on a sprint selector in PBI). I tried to modify -1 Sprint Wk CC to -5 or -3 etc., it doesn't show any difference. Any hints? Many thanks in advance!
Solved! Go to Solution.
HI @pbi_wannabe_exp,
I think this scenario may be related to the 'all' function, it will ignore all filters on the table so it may conflict with getting the current field value. (max function are calculated on the fixed all table records and get static result)
ALL function (DAX) - DAX | Microsoft Docs
Have you tried to create a variable and move this type of operation out of the current calculation row context?
formual =
VAR currValue =
MAX ( Calendar[Sprint Year CC] )
RETURN
CALCULATE (
SELECTEDMEASURE (),
FILTER ( ALL ( Calendar ), [Sprint Year CC] <= currValue )
)
Regards,
Xiaoxin Sheng
HI @pbi_wannabe_exp,
I think this scenario may be related to the 'all' function, it will ignore all filters on the table so it may conflict with getting the current field value. (max function are calculated on the fixed all table records and get static result)
ALL function (DAX) - DAX | Microsoft Docs
Have you tried to create a variable and move this type of operation out of the current calculation row context?
formual =
VAR currValue =
MAX ( Calendar[Sprint Year CC] )
RETURN
CALCULATE (
SELECTEDMEASURE (),
FILTER ( ALL ( Calendar ), [Sprint Year CC] <= currValue )
)
Regards,
Xiaoxin Sheng
User | Count |
---|---|
5 | |
5 | |
3 | |
2 | |
2 |
User | Count |
---|---|
9 | |
7 | |
5 | |
4 | |
4 |