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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Percent calculation

Good day

I want to calculate a percentage of two measures in Qlik-Sense.

The key figures have already been created in the master elements and also deliver the correct result.

Measure1 - amount of yield: count ({<M.MEASURE_Result = {Error}>} M.MEASURE_VALUE)

Measure2 - total: count (M.MEASURE_VALUE)

Which formula do I have to use here so that I get the percentage of Errorr quantities.

As X% of total amount have an error!

Many Thanks

Stefan

1 Solution

Accepted Solutions
vitaliichupryna
Creator III
Creator III

Hi Stefan,

See calculation below:

Num(count ({<M.MEASURE_Result = {Error}>} M.MEASURE_VALUE)/count (M.MEASURE_VALUE),'#,###%')


Thanks,

Vitalii

View solution in original post

6 Replies
MK9885
Master II
Master II

I think Measure1/Measure 2 should give you

Sometimes you may have to multiply by 100

(Measure1/Measure2) * 100

Anil_Babu_Samineni
MVP
MVP

May be

Num(count ({<M.MEASURE_Result = {Error}>} M.MEASURE_VALUE),'#,#0%')

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
Anonymous
Not applicable
Author

Good Morning!

Thanks for the answer but this is not working!

The result with this is:

Measure Error: 73753

Measure Value: 5141065

Result is: 7375300,00%

So I just get the Errors is %

But the result should be: 1,435%


Do you have an Idea i i get this fixed?

Thanks, Stefan

MK9885
Master II
Master II

To get your result

Create a new measure

Error%: ([Measure Error] / [Measure Value]) * 100

Measure error and Measure Value are the labels of your expression

vitaliichupryna
Creator III
Creator III

Hi Stefan,

See calculation below:

Num(count ({<M.MEASURE_Result = {Error}>} M.MEASURE_VALUE)/count (M.MEASURE_VALUE),'#,###%')


Thanks,

Vitalii

Anonymous
Not applicable
Author

Hello Vitalii

thanks! Now it is working!

br Stefan