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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Expression help

Hi I have expression below, i want to deduct 100 from that.

100 - expresion. The resulst should be 2 decimals with percentage.

=num(TextCount({<Month = {'$(vMonth)'}, Year = {'$(vYear)'}>}Topic) / count(count1) , '#.00 %')

1 Solution

Accepted Solutions
PrashantSangle

Hi,

Then Try,

=Num(100-(num(TextCount({<Month = {'$(vMonth)'}, Year = {'$(vYear)'}>}Topic) / count(count1) , '#.00')) ,'#.00 %')

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

8 Replies
ajaykumar1
Creator III
Creator III

Hi ,

Try like;

=100-(num(TextCount({<Month = {'$(vMonth)'}, Year = {'$(vYear)'}>}Topic) / count(count1) , '#.00 %'))


Regards,

Ajay

Not applicable
Author

Hi Ajay,

I already tried. forgot to mention - The resulst should be 2 decimals with percentage.

ajaykumar1
Creator III
Creator III

Hi,

Above expression not worked?

For 2 decimals Go to your table---Right click properties---Number---select your expression in left side---Fixed to 2

and select the show in percentage check box.

Regards,

Ajay

Not applicable
Author

Hi,

Unfortunately I am using Textbox.

Not applicable
Author

Any one help?

ajaykumar1
Creator III
Creator III

Hi,

Can you tell me how you created the TEXT Box.Am new to text box.

Thanks,

Ajay

PrashantSangle

Hi,

Then Try,

=Num(100-(num(TextCount({<Month = {'$(vMonth)'}, Year = {'$(vYear)'}>}Topic) / count(count1) , '#.00')) ,'#.00 %')

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
Author

This should do the trick:


=num(100-(TextCount({<Month = {'$(vMonth)'}, Year = {'$(vYear)'}>}Topic) / count(count1) , '#.00 %'))