Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
JayKay07
Contributor III
Contributor III

If Else Count

Hi,

I have two columns: Item and Count

I have issuing in format. In count field some rows are figures (like 12,345) and some are percentages (like 45.8%). Please see the desire outcome for correct format. I am using this formula, but it is not working. Can anyone please assist? Thanks

if([Item]=('Rate'),sum(num(Count, '##0.0%')),sum(num(Count, '#,##0')))

Qlik.png

Labels (1)
1 Solution

Accepted Solutions
vinieme12
Champion III
Champion III

Num() should be outside the measure,

Choose Number formatting =  Measure Expression

if([Item]='Rate',num(sum(Count), '##0.0%'),num(sum(Count), '#,##0'))

 

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.

View solution in original post

2 Replies
vinieme12
Champion III
Champion III

Num() should be outside the measure,

Choose Number formatting =  Measure Expression

if([Item]='Rate',num(sum(Count), '##0.0%'),num(sum(Count), '#,##0'))

 

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.
JayKay07
Contributor III
Contributor III
Author

Thank you