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

SET expression required

Hi,

I have a data like as below

 

BudgetA ProjectB ProjectC Project
0.13A
0.26 B
0.33 C
0.49A
0.7 B

I need to display in a text object the sum of Budget of the  Project A and Project B that is 1.58 (excluding Project C)

How to achieve it...


Thanks in advance


Regards,

Yoganantha Prakash G P

18 Replies
pooja_prabhu_n
Creator III
Creator III

Hi,

You can try something like this:

=Sum({<[A Project]={'*'}-{''}>+<[B Project]={'*'}-{''}>}Budget)

Thanks,

Pooja

Anonymous
Not applicable

Hi Use this expression in text object

=Sum({<[A Project]={'A'}>}Budget) + Sum({<[B Project]={'B'}>}Budget)

boraste-sagar
Contributor III
Contributor III

Hi Yoganatha

try this

=Sum({<[A Project]={'A'}>}Budget) + Sum({<[B Project]={'B'}>}Budget)

gawalimegha
Contributor III
Contributor III

Hello Yoganantha,

Use simply this.

=sum( {<[A Project]={'A'}> + < [B Project]={'B'}>} Budget )

yoganantha321
Creator II
Creator II
Author

Hi all,

I have given wrong data set.

Kindly find the new one

 

BudgetA ProjectB ProjectC Project
0.131
0.26 1
0.33 1
0.492
0.7 2
0.53
0.6 3
yoganantha321
Creator II
Creator II
Author

Hi Pooja,

I have given wrong data set.

Kindly find the new one

BudgetA ProjectB ProjectC Project
0.131
0.261
0.331
0.492
0.72
0.53
0.63
pooja_prabhu_n
Creator III
Creator III

Hi,

Same expression works for this data set as well.

=Sum({<[A Project]={'*'}-{''}>+<[B Project]={'*'}-{''}>}Budget)



Thanks,

Pooja

yoganantha321
Creator II
Creator II
Author

it is not working Pooja

gawalimegha
Contributor III
Contributor III

Hello Yoganantha,

Try this one.

=sum( {<[A Project]={">=1"}> + < [B Project]={">=1"}>} Budget )