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

Announcements
Only at Qlik Connect! Guest keynote Jesse Cole shares his secrets for daring to be different. Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Karim_Khan
Creator III
Creator III

Replace the value with conditional

Hi Team,

     There is a condition.Suppose if there is a 0 zero value in Monthly 2014 column then it should show 'No FY Booking 2014' in Monthly Copy YOY cloumn.and if there is a 0 zero value in Monthly 2015 column then it should show 'No FY Booking 2015' in Monthly Copy YOY

I am trying to create the scenario with below expression

=if(v2014=0,'No FY Booking 2014' or v2015=0,'No FY Booking 2015',([Monthly 2015]/[Monthly 2014])-1))

Variable store value

v2014='$' & round(num(sum({$<[Fiscal Year] = {'2014'},[Month in Fiscal Year] = {'$(=only([Month in Fiscal Year]))'}>} [Net Bookings]),'##.00'))

v2015='$' & round(num(sum({$<[Fiscal Year] = {'2015'},[Month in Fiscal Year] = {'$(=only([Month in Fiscal Year]))'}>} [Net Bookings]),'##.00'))

Regards,
KK

MRKachhiaIMPjagangwassenaarashfaq_haseebKush141087

KK
1 Solution

Accepted Solutions
Kushal_Chawda

try this condition in your expression

if([Monthly 2014] =0,'No FY Booking 2014',

if([Monthly 2015]=0,'No FY Booking 2015',

if([Monthly 2014]=0 and [Monthly 2015]=0,'No FY Booking 2014 & 2015',

([Monthly 2015]/[Monthly 2014])-1)))

View solution in original post

4 Replies
MK_QSL
MVP
MVP

You can use something like below instead of v2014 and v2015

IF(round(num(sum({$<[Month in Fiscal Year] = {'$(=only([Month in Fiscal Year]))'}>} [Net Bookings]),'##.00')) = 0,'No FY Booking ' & Max([Fiscal Year]),

round(Money(sum({$<[Month in Fiscal Year] = {'$(=only([Month in Fiscal Year]))'}>} [Net Bookings]),'$##.00')))

Karim_Khan
Creator III
Creator III
Author

no it is not working

It should be change on the basis of values in other column

KK
Kushal_Chawda

try this condition in your expression

if([Monthly 2014] =0,'No FY Booking 2014',

if([Monthly 2015]=0,'No FY Booking 2015',

if([Monthly 2014]=0 and [Monthly 2015]=0,'No FY Booking 2014 & 2015',

([Monthly 2015]/[Monthly 2014])-1)))

Karim_Khan
Creator III
Creator III
Author

Tnx bro

KK