Supplies are limited. Contact info@espc.tech right away to save your spot before the conference sells out.
Get your discountScore big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount
I am trying to get the upcoming milestone in a measure.
I have a working measure for the last completed milestone that is quite similar, this is the code of the last completed milestone, which is working fine:
LastCompletedMilestone =
var currentproject = selectedvalue('CI Milestones'[ProjectID0])
RETURN
CALCULATE(MAX('CI Milestones'[Title]),
'CI Milestones'[Id]=
MAXX(
FILTER(ALL('CI Milestones'),'CI Milestones'[ProjectID0]=currentproject && 'CI Milestones'[MilestoneStatus]="Completed"),
'CI Milestones'[Id])
)
This is the code I have for the upcoming milestone, which throws me an error "A function 'FILTER' has been used in a True/False expression that is used as a table filter expression. This is not allowed".
Upcoming Milestone =
var currentproject = selectedvalue('CI Milestones'[ProjectID0])
RETURN
CALCULATE(MIN('CI Milestones'[Title]),
'CI Milestones'[Id]=
MIN(
FILTER(ALL('CI Milestones'),'CI Milestones'[ProjectID0]=currentproject && 'CI Milestones'[MilestoneStatus]<>"Completed" && 'CI Milestones'[MilestoneStartDate]>TODAY()),
'CI Milestones'[Id])
)
I cannot figure out why this new measure has an error. Kindly assist!
Solved! Go to Solution.
I removed one of the conditions and now it works:
Upcoming Milestone =
var currentproject = selectedvalue('CI Milestones'[ProjectID0])
RETURN
CALCULATE(MIN('CI Milestones'[Title]),
'CI Milestones'[Id]=
MINX(
FILTER(ALL('CI Milestones'),'CI Milestones'[ProjectID0]=currentproject && 'CI Milestones'[MilestoneStartDate]>TODAY()),
'CI Milestones'[Id])
)
Thanks for the suggestion. However I encounter the same error. A function 'FILTER' has been used in a True/False expression that is used as a table filter expression. This is not allowed.
Upcoming Milestone =
var currentproject = selectedvalue('CI Milestones'[ProjectID0])
RETURN
CALCULATE(MIN('CI Milestones'[Title]),
'CI Milestones'[Id]=
MINX(
FILTER(ALL('CI Milestones'),'CI Milestones'[ProjectID0]=currentproject && 'CI Milestones'[MilestoneStatus]<>"Completed" && 'CI Milestones'[MilestoneStartDate]>TODAY()),
'CI Milestones'[Id])
)
I removed one of the conditions and now it works:
Upcoming Milestone =
var currentproject = selectedvalue('CI Milestones'[ProjectID0])
RETURN
CALCULATE(MIN('CI Milestones'[Title]),
'CI Milestones'[Id]=
MINX(
FILTER(ALL('CI Milestones'),'CI Milestones'[ProjectID0]=currentproject && 'CI Milestones'[MilestoneStartDate]>TODAY()),
'CI Milestones'[Id])
)
User | Count |
---|---|
13 | |
10 | |
8 | |
7 | |
5 |
User | Count |
---|---|
24 | |
16 | |
15 | |
10 | |
7 |