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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
beck_bakytbek
Master
Master

Dynamic time expression-selection

Hi Folks,

i goit a following situation, my table does look like:

ProjectTimeOnTypBudget
A01.01.2018AA100
B31.12.2017BB150
C31.11.2017CC30
D31.09.2017CC60

and i use as timefilter, that i created on base of master calender the following filter:

 

Timefilter
2017 11
2017 10
2017 09

2017 08

and i use the following set expression to calculate the budget for every typ of project:

  

Budget:
Sum({<Typ = {'AA'}>}Budget)100
Sum({<Typ = {'BB'}>}Budget)150
Sum({<Typ = {'CC'}>}Budget)90

everything does work great, now i have a question: lets imagine, my reportdate is:

2017 11 and if i select the date in Timefilter: 2017 11 , then should appear only two project:

  

ProjectTimeOnTypBudget
A01.01.2018AA100
B31.12.2017BB

150

because my timefilter-date: 2017 11 is lower then 01.01.2018 and 31.12.2017

and if select as reporting date 2017 10 then shoudl appear the following projects:

  

ProjectTimeOnTypBudget
A01.01.2018AA100
B31.12.2017BB150
C31.11.2017CC30

because my timefilter-date: 2017 10 is lower then 01.01.2018, 31.12.2017 and 31.11.2017

Does have anybody any idea how to handle dynamic this issue with the helps of set expression?

Thanks a lot

Beck

43 Replies
Thiago_Justen_

Hey Beck,

Check this out.

Thiago Justen Teixeira Gonçalves
Farol BI
WhatsApp: 24 98152-1675
Skype: justen.thiago
beck_bakytbek
Master
Master
Author

Hi Thiago,

thanks a lot for your example, it does make me more sure to find the solution, as you see in app: it was an example, i want to ask you, what would you do (or how would you do) if you have an master calender with years, month to concatenate with field: Finished_On, do you have any idea?

Thanks a lot

Thiago_Justen_

Maybe  this could be useful on it:

MakeDate(text(left(Time,4),text(right(Time,2)),1)

Obviously, if I understood exactly what you want to.

Thiago Justen Teixeira Gonçalves
Farol BI
WhatsApp: 24 98152-1675
Skype: justen.thiago
beck_bakytbek
Master
Master
Author

Hi Thiago,

Thanks a lot for your responce and your valueable time

i try to accomplish my issue and will let you know, when i finished and show the output, ok

Thiago_Justen_

Sound's good Beck. I'll be right here if you need again.

Cheers

Thiago Justen Teixeira Gonçalves
Farol BI
WhatsApp: 24 98152-1675
Skype: justen.thiago
beck_bakytbek
Master
Master
Author

Thiago, thanks again for your help and your time

beck_bakytbek
Master
Master
Author

Hi Thiago,

i attached my example -app with explanation. Do you have any idea?

Thanks a lot

Beck

Thiago_Justen_

Let me see. Just a minute and I'll come back with any suggestion.

Thiago Justen Teixeira Gonçalves
Farol BI
WhatsApp: 24 98152-1675
Skype: justen.thiago
Thiago_Justen_

Wich extension are you using on it?

Thiago Justen Teixeira Gonçalves
Farol BI
WhatsApp: 24 98152-1675
Skype: justen.thiago
beck_bakytbek
Master
Master
Author

Hi Thiago, i dont use any extensions, i wanted to know, is that possible to make the table selectable ( i mean if i create the table with input like aktiv and nonaktive and make the table visible like in my example-app).

Do you have any ideas?

Thanks a lot

Beck