Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
anindya_manna
Partner - Creator II
Partner - Creator II

How to extract date when sales value reach exactly 100k?

Hello Experts,

I am creating a chart with the columns id ,name ,sales,100K break date.I want to show id and names whose sells more than or equal to 100k and also the aook break date in which it exactly touch 100k milestone.

How to do it in a single table?

1 Solution

Accepted Solutions
anindya_manna
Partner - Creator II
Partner - Creator II
Author

Yes able to get it.

date(aggr(Min({<[New_Sales]={">=1000"}>}[Process Date]),Name,ID))


But instead of previous function if there is any alternative way then please help me.

Table may not be always sorted in that case previous will not work.

View solution in original post

23 Replies
shiveshsingh
Master
Master

Please share your app, you can put conditional dimension to counter this requirement

YoussefBelloum
Champion
Champion

Hi,

you can add an expression for the date, like this:

=only( {<Measure={"sum(Measure)=100000"}>}  date_field)

anindya_manna
Partner - Creator II
Partner - Creator II
Author

This is not working.This is my expression but it is not working.

only({<[Sales Amt]={"sum([Sales Amt])=10000"}>}[Process Date])

YoussefBelloum
Champion
Champion

My bad.. try this

=only( {<Measure={"=sum(Measure)=100000"}>}  date_field)

YoussefBelloum
Champion
Champion

only({<[Sales Amt]={"=sum([Sales Amt])=10000"}>}[Process Date])

anindya_manna
Partner - Creator II
Partner - Creator II
Author

This is also not working.I am unable to get process date.

YoussefBelloum
Champion
Champion

it is because you don't have a row with [Sales Amt]=100000 on your table.


if you try this, I'm sure you will be able to see some dates


only({<[Sales Amt]={"=sum([Sales Amt])>=100000"}>}[Process Date])

sasiparupudi1
Master III
Master III

Max({<id={'=Aggr(sum([Sales Amt]),id)=10000'}>}[Process Date])

anindya_manna
Partner - Creator II
Partner - Creator II
Author

PFA