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

Filter by dollar amount

I am trying to filter on a dollar amount.

This does return records: =Aggr(if((SUM(BUDGET_AMT) > 1), MasterKey),MasterKey)

This does NOT return any records. =Aggr(if((SUM(BUDGET_AMT) > 1,000), MasterKey),MasterKey)

I have hundreds of records that are over 1,000. 

 

Looking for suggestions 

Labels (2)
1 Solution

Accepted Solutions
BrianDH
Creator II
Creator II
Author

Question

You say to "use this in all measures"



Sum( {$< ProjectKey={"=Sum(BUDGET_AMT)>3000000"}>} BUDGET_AMT )



Do I replace BUDGET_AMT with the measure name/s



BTW(Sum( {$< ProjectKey={"=Sum(BUDGET_AMT)>3000000"}>} BUDGET_AMT ) this did filter my rows great until I added a second measure.


View solution in original post

13 Replies
teiswamsler
Partner - Creator III
Partner - Creator III

Hi Brian

Try this
Aggr(if((SUM(BUDGET_AMT) > 1000), MasterKey),MasterKey)

Br.
Teis

BrianDH
Creator II
Creator II
Author

OK, now I get records. However, I need to only show



Aggr(if((SUM(BUDGET_AMT) > 3,000,000), MasterKey),MasterKey)



I have 12 records that should be seen but it shows no records.


teiswamsler
Partner - Creator III
Partner - Creator III

Hi Brian

Dont use "," within the If() function. Edit value to have no seperators.

Br.
Teis

BrianDH
Creator II
Creator II
Author

I tried this

=Aggr(if((num(SUM(BUDGET_AMT), '##########') > num(3000000, '##########')), MasterKey),MasterKey)

teiswamsler
Partner - Creator III
Partner - Creator III

Hi Brian

You keep changing your question, what do you wish the show?

Br.
Teis

BrianDH
Creator II
Creator II
Author

Sorry

 I only want to show records that have a budget over 3 Million 

=Aggr(if((SUM(BUDGET_AMT) > num(3000000, '##########')), MasterKey),MasterKey, PROJECT_ID)

I am trying to understand how to do this in Qlik Sense.  

 

 

teiswamsler
Partner - Creator III
Partner - Creator III

Hi Brian

No problem.

try this
Aggr(if((SUM(BUDGET_AMT) > 3000000), MasterKey),MasterKey)

I your example when you use a comma "," in the value. Qlik will read it as seperate parts of the if() function.

Br.
Teis

BrianDH
Creator II
Creator II
Author

Getting closer, see screenshot attached.   

My "Key"  is putting the rows that are over 3 Mil at the top but i am still getting other rows.

🙂

teiswamsler
Partner - Creator III
Partner - Creator III

Hi Brian

Lets try something els.

Sum( {$< ProjectKey={"=Sum(BUDGET_AMT)>3000000"}>} BUDGET_AMT )

If there is more then one measures in the table/object the set above should be use in all measures.
and in the table properties, you should exclude zero value.

Br.
Teis