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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
stevegimbrollmt
Creator II
Creator II

Fractile and Set Analysis - Date range

Hi guys

Is it possible to do this set anaylsis in a  fractile

e.g. =fractile(IF(KPI_CHT='GGR', CHT_VALUE),.8)

and I want to add a 30day bracket in it like this

{<[kpi_date]={">=$(=date((created_date)-30))<=$(=date((created_date)))"} }

thanks a lot!

Steve

1 Solution

Accepted Solutions
stevegimbrollmt
Creator II
Creator II
Author

Hi guys, just to let you know that this was solved by doing something like this

=fractile({$<KPI_CHT={'GGR'}, RUNDATE_CHT={'>=$(=v_30_Days)<=$(=RUNDATE_DTL)'}>}CHT_VALUE, .8)

thanks a lot for your help guys

View solution in original post

4 Replies
klausskalts
Partner - Creator
Partner - Creator

My guess is that this might work:

{<

[kpi_date]={">=$(=max(date((created_date))-30)),<=$(=max(date((created_date))))"}

>}

But remember that you will still have to face some issues regarding re-use of fields in dimensions etc .....

stevegimbrollmt
Creator II
Creator II
Author

thanks for your reply, but how does this effect the fractile function?

I am using this in a graph for a percentage line.

I want the fractile to change also based on date range, is that possible?

danielrozental
Master II
Master II

Steve, why don't you try posting a sample application so we can help you.

Something like this should work

fractile(

{<

[kpi_date]={">=$(=max(date((created_date))-30)),<=$(=max(date((created_date))))"},

KPI_CHT={'GGR'}

>} CHT_VALUE, 0.8)

stevegimbrollmt
Creator II
Creator II
Author

Hi guys, just to let you know that this was solved by doing something like this

=fractile({$<KPI_CHT={'GGR'}, RUNDATE_CHT={'>=$(=v_30_Days)<=$(=RUNDATE_DTL)'}>}CHT_VALUE, .8)

thanks a lot for your help guys