Forum Discussion
SBaher
4 years agoRegular Visitor
VALUES function not working - using the resulting array of values works ok
Hi, I am struggling with the VALUES function in the first part of the formula below. I am trying to get a list of unique DEAL_IDs where the Opportunity event happend in any given week (date filte...
- Anonymous4 years ago
Hi SBaher ,
Check the formula.
Measure = var _tmp1 = CALCULATETABLE(VALUES('Table'[Deal_ID]),FILTER(ALL('Table'),'Table'[EOW] = SELECTEDVALUE(slicer[EOW]))) var _tmp2 = CALCULATETABLE(VALUES('Table'[Event]),FILTER('Table','Table'[Deal_ID] in _tmp1)) return IF(SELECTEDVALUE('Table'[Event]) in _tmp2,1,BLANK())Pbix as attached.
Best Regards,
Jay
DataInsights
4 years agoSuper User
Will this work?
Weekly Ops =
CALCULATE (
DISTINCTCOUNT ( F_Events_Sequence[DEAL_ID] ),
ALL ( F_Events_Sequence ),
[S_OPPORTUNITY_FLAG] = 1
)