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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to display dynamic column as per date criteria ?

Hello all,

How one can display the dynamic column as per date criteria. Scenario has been enclosed for all of your reference. Help will be immensely appreciated.

Thanks, have a great time!!!

24 Replies
HirisH_V7
Master
Master

AFAIK no way,But some changes in the Requirement i.e by making the loops in the Script itself and creating required  columns dynamically and using them.

I believe we need to do some R&D for this model.

HirisH
“Aspire to Inspire before we Expire!”
vinieme12
Champion III
Champion III

check the attached

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.
Not applicable
Author

Enclosed qvw is the right one posted by hirishv7, but is there any dynamic way if i have above 100 expressions ....

how to including the loop concept in it.


Thanks Vineeth for your valuable time.

vinieme12
Champion III
Champion III

what I attached was a dynamic one, have you checked??

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.
Not applicable
Author

so sorry didn't notice ......It's a dynamic one,will chk and get back to you ASAP

vinieme12
Champion III
Champion III

Hi stalwar1‌ , swuehl‌ , gwassenaar

I've been trying to go get this to work but couldn't.

On the below table what we need is if we select  19th April 2013

"Selected Column" to show data for selected date ie 19th April 2013 only

"Trailing": Should show data from  Jan(1-19),Feb(1-19).....to  April(1-19)

244381.PNG

At the moment Date Selection is only calculating for selected Month , even though I've specified criteria in Set to evaluate from Month 1 to Selectedmonth

244381_2.PNG

Thanks

Vineeth

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.
sunny_talwar

vinieme12‌‌ are you looking for this?

Capture.PNG

Expressions

=if(Only({1}PeriodRange) = 'Trailing',

SUM({<Date = , DayofDate =, MonthofDate = ,DayofDate = {">=1<=$(=Max(Day((Date))))"} ,MonthofDate = {">=1<=$(=Max(Month(Date)))"}>}Amt)

,if(Only({1}PeriodRange) = 'Selected',

SUM({<Date = {"$(=Max(Date))"}, DayofDate =, MonthofDate = >}Amt)

))

=if(Only({1}PeriodRange) = 'Trailing',

SUM({<Date = , DayofDate =, MonthofDate = ,DayofDate = {">=1<=$(=Max(Day((Date))))"} ,MonthofDate = {">=1<=$(=Max(Month(Date)))"}>}Amt1)

,if(Only({1}PeriodRange) = 'Selected',

SUM({<Date = {"$(=Max(Date))"}, DayofDate =, MonthofDate = >}Amt1)

))

vinieme12
Champion III
Champion III

Fab as always  stalwar1

But can I ask you , why do we still use only() on PeriodRange, which is an dummy dimension when the Actual selection is on the Date field?

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.
vinieme12
Champion III
Champion III

sadhan.damal‌, now you have a complete dynamic solution, use the expressions below by Sunny

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.
sunny_talwar

Here you will see why

Capture.PNG

When 4/19/2013 is selected PeriodRange is only available for that day, rest of the days it is null. When I used {1}, regardless if your other selections, it is always available.

HTH

Best,

Sunny