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

Announcements
Save $650 on Qlik Connect, Dec 1 - 7, our lowest price of the year. Register with code CYBERWEEK: Register
cancel
Showing results for 
Search instead for 
Did you mean: 
upaliwije
Creator II
Creator II

MATCH FIELDS

I have following data fields in a table

Customer          Payee            AMOUNT         

A                    TOYATO              10000

B                    M/S TOYOTA         7500

C                   Toyota pvt ltd          4000

D                    DIMO                    2000

E                     DIMO COMPANY  15000

F                          Dimo                    100

I want to  sum  amount according to payee name. Since the payee name . Since the payee name recorded differently pls help with a expression to extract data

1 Solution

Accepted Solutions
PrashantSangle

Hi,

Use combination of wildmatch() and Special charater *

Like

If(wildmatch(Payee,'*Toyato*'),sum(Amount))

Regards

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂

View solution in original post

6 Replies
sujeetsingh
Master III
Master III

You can use subfield function to do this but before you need to come up with the consistency in the names .

Not applicable

Hi,

How your Output Should look like ? Can u upload sample output Table ?

PrashantSangle

Hi,

Use combination of wildmatch() and Special charater *

Like

If(wildmatch(Payee,'*Toyato*'),sum(Amount))

Regards

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
Not applicable

please elaborate your requirement,post the output table which you want.

ashfaq_haseeb
Champion III
Champion III

Hi,

Have a look at the attached application.

Regards

ASHFAQ

jagan
Partner - Champion III
Partner - Champion III

Hi,

Try to create one more with Customer and Payee names like below.

Data:

load * Inline

[

Customer,Payee,AMOUNT        

A,TOYATO,10000

B ,M/S TOYOTA,7500

C ,Toyota pvt ltd,000

D ,DIMO,2000

E,DIMO COMPANY,15000

F,Dimo,100

];

LEFT JOIN(Data)

load * Inline

[

Customer,PayeeCategory  

Toyota,A

Toyota ,B

Toyota ,C

Dimo ,D

Dimo,E

Dimo,F

];

Now PayeeCategory as Dimension in your chart.

Create an excel and maintain the Customer mapping details so that it would be easier to maintain.

Regards,

Jagan.