Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
For some reason the original expression works perfectly, however when I attempt to convert to set analysis I get zero? All the if's are really hitting performance, so am trying to convert all to set analysis...
Old Current Week:
=COUNT(DISTINCT if(MFG_STARTED='YES' AND INF_DATE_WEEK_OF=WeekStart(vDenConnectScorecard,0,-1),COI))
New Current Week:
=COUNT(DISTINCT {$<MFG_STARTED={'YES'},INF_DATE_WEEK_OF={'$(=WeekStart(vDenConnectScorecard,0,-1))'}>}COI)
Or may be this:
=Count(DISTINCT {$<MFG_STARTED={'YES'}, INF_DATE_WEEK_OF = {"=INF_DATE_WEEK_OF = WeekStart(vDenConnectScorecard, 0, -1)"}>} COI)
Try
=COUNT(DISTINCT {$<MFG_STARTED={'YES'},INF_DATE_WEEK_OF={"=$(WeekStart($(vDenConnectScorecard),0,-1))"}>}COI)
or
=COUNT(DISTINCT {$<MFG_STARTED={'YES'},INF_DATE_WEEK_OF={"=$(WeekStart(vDenConnectScorecard,0,-1))"}>}COI)
No dice, both of those also give 0
interestingly this does work at the day level...
old:
=COUNT(DISTINCT if(MFG_STARTED='YES' AND INF_DATE=date(vDenConnectScorecard),COI))
new:
=count(distinct {$<MFG_STARTED={'YES'},INF_DATE={'$(=date(vDenConnectScorecard))'}>}COI)
Or may be this:
=Count(DISTINCT {$<MFG_STARTED={'YES'}, INF_DATE_WEEK_OF = {"=INF_DATE_WEEK_OF = WeekStart(vDenConnectScorecard, 0, -1)"}>} COI)
Awesome! thanks!!!