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

How to sum with letters included?

Hallo everyone,

I am quite new to QlikView and I wonder if someone could help me with the following issue:

I would like to sum a colum which is easy. But now I have the problem that letters are in that same column. If I insert a sum formula the letters vanish to "0" what they shouldn't do. I need them there but not to be count.

Can anyone help, please?

Thank you very much in advance!

17 Replies
Anonymous
Not applicable
Author

I am sorry, but it still is not the solution.

I think the main problem here is, that the text "abc" is not counted as number but as text so that all following numbers are not getting counted - not even horizontically.

sunny_talwar

Have not done any testing, but I don't think it should give any performance differences....

sunny_talwar

Can you share your application and explain what you want in it?

vishsaggi
Champion III
Champion III

What you mean by below?

"I think the main problem here is, that the text "abc" is not counted as number but as text"

Anonymous
Not applicable
Author

Hey everyone.

I try to sum and average the data below. My Problem is, when reading in the data, the "abc" is shown as "text" (Standing left). For the average the whole column does not get counted so that I get a wrong average. I want it to be written as text but the column should Count. I think that I am expressing myself too complicated. Sorry about that. I might find a Workaround solution.

   

JanFebMrzAprMaiJunJulAugSepOktNovDezØ
2,003,008,001,000,009,002,003,008,001,000,009,003,83
2,003,008,001,000,009,002,003,008,001,000,009,003,83
2,003,008,001,000,009,002,003,008,001,000,009,003,83
abc3,008,001,000,009,002,003,008,001,000,009,000,00
2,003,008,001,000,009,002,003,008,001,000,009,003,83
2,003,008,001,000,009,002,003,008,00abc0,009,000,00
2,003,008,001,000,009,002,003,008,001,000,009,003,83
2,003,008,001,000,009,002,003,008,001,000,009,003,83
2,003,008,001,000,009,002,003,008,001,000,009,003,83
Colin-Albert

Try this expression

if(dimensionality() = 0,

sum(if(isnum(Measure), Measure)),

if(isnum(Measure),sum(Measure), Measure)

)

measure_test.JPG

sunny_talwar

All you need to use here is to use Dimensionality() and SecondaryDimensionality() functions... Basically these functions will let you use different expressions for total vs. main expression.... Now, since the only thing you have been sharing is raw data, I don't know how your chart is structured, so it would be very difficult to give the exact expression. But see if you can work with this

How to use - Dimensionality()

The second dimension... or how to use secondarydimensionality()

Or else share a sample of your app

Preparing examples for Upload - Reduction and Data Scrambling

Uploading a Sample

Anonymous
Not applicable
Author

Thank you very much for so much support!

I fixed my problem in using the rangesum function.