Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Sum(UNITS)/count({1}total distinct(WEEK))
This does not return the correct answer. Essentually I have 33 weeks of the fiscal year so far and for this sales representative she has only written busines in abot 20, so qkiksense is ging me her average per week based only on the weeks she rote business, infalting her true average per week which is divided by all weeks.
I attemped to to put the {1) in here to tell qlik to include all totoal distinct weeks YTD and it gives a me weird and wrong number
Your help apprecaited.
Maybe this:
Sum(UNITS)/count(all distinct WEEK)
sorry no, tried all, total, your format above, all wrong numbers as answer which I validate manually to ensure.
what is interesting is that my formual works in a table, but not in a KPI onbject. Exact same formula.
Would you be able to share a sample or an image to show it working in table, but not in KPI?
look at "webber" then look at 2018 av/wk is 25.956
here it is in the KPI object, exact same expression: sum(units)/count(total distinct(week))
here it is 36 becasue it is dividingby her total number of weeks biut not by the actual number of weeks, I thought "total" would do that.
look at webber and avunits/wk