Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

calculated dimension

Hi

I want a dimension which displays weekend values but data range must be weekstart to weekend. so i made calculated dimension as :

=only({<[Number Date]={">=[Week First date] <=[Week Last date]"}>}([Week Last date]))

but as we know only must be used when inner set returns 1 value.

can any 1 suggest a way to achieve this?

Labels (1)
3 Replies
tresB
Champion III
Champion III

prudhvi teja wrote:

.....

but as we know only must be used when inner set returns 1 value.

I really did not get this point. Could you share a sample qvw and explain the expected output? What I guess is you probably need aggr() here. May be like:

=Aggr(only({<[Number Date]={">=[Week First date] <=[Week Last date]"}>}([Week Last date])), [Week Last date])

Kushal_Chawda
MVP
MVP

You need aggr function

aggr(only({<[Number Date]={">=[Week First date] <=[Week Last date]"}>}([Week Last date])),[Number Date])

Not applicable
Author

Hi tresesco,

wat i mean is i have weekfirst date and weeklast date for a calender date.

in 1 chart i have weeklast date as dimension and count(employee number) as measure. but for some weeks wrong values are displayed. so i am thinking to restrict explicitly the dimension to include date range from week strt to week last for a respective week last date.

pls find attachment.