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

To find unique charges based on ID,REGION.

Hello all,

I have one problem can u please help me out.

IDTRANSACTION NOREGION TAXVALUE
B1T1ABC50100
B1T2ABC50200
B1T3ABC50250
B2T4XYZ25500
B2T5XYZ25750
B3T6PQR

30

200
B3T7PQR30350

I need to calculate sum of VALUE w.r.t ID.

EX:  ID = B1

       VALUE = 550

As per the scenario the TAX will become 150, where as I need to consider it as unique(i.e., only 50 because my ID is B1 only)

so the final result should display as follows

________________________

ID: B1

Transaction count: 3

Region: ABC

TAX: 50

VALUE: 550

___________________________And also require Region wise as below

Region: ABC

TAX: 50

VALUE: 550

Region: XYZ

TAX: 25

Value:1250

_____________________________

Thanks in advance

1 Solution

Accepted Solutions
kavita25
Partner - Specialist
Partner - Specialist

PFA..

Regards,

Kavita

View solution in original post

18 Replies
sunny_talwar

‌for 1st requirement:

Dimension ID

Expression

1) Count(ID)

2) Only(REGION)

3) Only(TAX) or Sum(Distinct TAX)

4) Sum(VALUE)

maxgro
MVP
MVP

maybe

sum(VALUE) / avg(TOTAL <ID> TAX)

sunny_talwar

‌For second requirement:

Dimension: REGION

Expressions

1) Only(Tax) or Sum(Distinct TAX)

2) Sum(VALUE)

Anonymous
Not applicable

Hi

are u looking for this ?

ID =Only(Tax) =Sum({<ID={'B1'}>}Value) =count(Transaction) =Only({<ID={'B1'}>}Region)
550 7 ABC
B1505503ABC
B22502
B33002
kavita25
Partner - Specialist
Partner - Specialist

PFA..

Regards,

Kavita

hamzabob1
Partner - Contributor III
Partner - Contributor III
Author

Thanks everyone its working fine...

thanks again.

hamzabob1
Partner - Contributor III
Partner - Contributor III
Author

Now i have one more ID with the same TAX like 30,50...

and i want to show in text box..

thanks in advance...

Anonymous
Not applicable

what is your expected output?

kavita25
Partner - Specialist
Partner - Specialist

Please elaborate ur requirement...with the expected result