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

Sum value Exception

Hi there,

Here is the dashboard.

I want to if Account_Status__c = Lower, it should be not sum in chart.

By the way, why i can't see Account_Status__c values in my chart.

Regards,

1 Solution

Accepted Solutions
Kushal_Chawda

Please check that the Id values from both the tables are matching or not. Seems it's not matching there for it's not joining the table correctly. Meaning that Id in opportunity table where you have amount is having blank values in Account table

View solution in original post

16 Replies
Anil_Babu_Samineni

Because, you don't have data for that. And i did suppress from presentation

Capture.PNG

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
stabben23
Partner - Master
Partner - Master

Hi,

you should not use concatenate here, romove it. Qlikview will create a "qlikiviewassociation" for you.

PrashantSangle

Hi,

in your script you are concatenating two table. because of that you are not getting values against Account_status__c

Instead of concatenate you have to use join (either left or right or outer).

Regards,

Prashant Sangle

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 🙂
asknyldz
Contributor III
Contributor III
Author

Thanks Prashant,

How can i join these tables for Id, could you please advice me.

Load * inline

[

Id,    Amount,

1,100

2,150

3,200

]

;

Load * inline

[

Id,    Account_Status__c,

1,Lower

2,Middle

3,Power

]

;

its_anandrjs

Try this ways

Tab1:

Load * inline

[

Id,    Amount

1,100

2,150

3,200

];

Left Join(Tab1)

Load * inline

[

Id,    Account_Status__c

1,Lower

2,Middle

3,Power

];

You get

Id,    Amount,Account_Status__c

1,100,Lower

2,150,Middle

3,200,Power

Regards

Anand

PrashantSangle

Hi,

Load * inline

[

Id,    Amount,

1,100

2,150

3,200

]

;

join

Load * inline

[

Id,    Account_Status__c,

1,Lower

2,Middle

3,Power

]

;

For more details search in help menu.

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 🙂
sasiparupudi1
Master III
Master III

Please use the following expression for sum

sum({<Account_Status__c-={'lower'}>}Amount)

in the script

Change it to following

Table1:

Load * inline

[

Id, Amount,

1,100

2,150

3,200

]

;

Left Join(Table1)

Load * inline

[

Id, Account_Status__c,

1,Lower

2,Middle

3,Power

]

;

asknyldz
Contributor III
Contributor III
Author

Thanks Parupudi,

I have below "Table not found" error in my script. What do you think, where is my error?

"Table not found

Left Join(Table1)

Load

    Id,

    Account_Status__c

RESIDENT Account_SQL

WHERE Account_Status__c = 'Rejected'"

CUSTOM CONNECT TO "QvSalesforceConnector";

Opportunity_SQL:

SQL

SELECT

    Id,

    Amount

FROM

    Opportunity

WHERE

    FiscalYear = 2017

;

Account_SQL:

SQL

SELECT

    Id,

    Account_Status__c

FROM

    Account

;

Table1:

Load

    Id,

    Num#(Amount,'0.0') as Amount

Resident Opportunity_SQL

;

Left Join(Table1)

Load

    Id,

    Account_Status__c

Resident Account_SQL

WHERE Account_Status__c = 'Rejected'

;

PrashantSangle

write noconcatenate before Table1:

and run. Also check & confirm that can u see Table1 in Table Viewer

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 🙂