Skip to main content
Announcements
Qlik Community Office Hours - Bring your Ideation questions- May 15th, 11 AM ET: REGISTER NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
vchuprina
Specialist
Specialist

Week number and Set analysis

Hi,

I'm trying to fix issue with missing weeks number in the chart below. The reason of problem is missing data for those weeks for Bmen account

First.png

Label use following calculations:

=$(DataMetricLabel(Sales U,0))

=$(DataMetricLabel(Sales U,1))

=$(DataMetricLabel(Sales U,2))

=$(DataMetricLabel(Sales U,3))

=$(DataMetricLabel(Sales U,4))

Variable - DataMetricLabel


'W'&only( {$<$(Dates),weekID={$(=max(weekID)-$2)}>}[Week #])&chr(10)&'$1'

Variable - Dates:

Quarter=,Year=,Month=,[Week #]=, [Week Year]=, [Week Ending Date]=Second.png

Do you have any ideas now it can be fixed?

I think I should add additional field with data for all weeks and accounts, but it not good idea)

Press LIKE if the given solution helps to solve the problem.
If it's possible please mark correct answers as "solutions" (you can mark up to 3 "solutions").
1 Reply
swuehl
MVP
MVP

What if you add Account field to be cleared in the set expression?

'W'&only( {$<$(Dates),weekID={$(=max(weekID)-$2)}, Account= >}[Week #])&chr(10)&'$1'