Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
alec1982
Specialist II
Specialist II

Add a case to IF Query

Hi

I am using the following Query

='' & Num(

    Sum(sum(Sales)

       )

      / if((GetFieldSelections(_BTActiveCurrency) = '$USD'), 1, $(varBTExecSummaryUsdPerGbp))

      /if(GetFieldSelections(_BTUnitOfMeasure) <> 'SQF', 0.09290304, 1)

, if((GetFieldSelections(_BtMrkPrfShowMarketRentSavingsPerUom) = 1), '#,##0.##', '#,##0'))

It works fine..

Now I need to add another case:

if((GetFieldSelections(_BtMrkPrfShowMarketRentSavingsPerUom) = 1) Use Sum[FieldAA] as Expresion

Any Ideas..

Thxs,

1 Reply
CELAMBARASAN
Partner - Champion
Partner - Champion

Hi,

='' & if((GetFieldSelections(_BtMrkPrfShowMarketRentSavingsPerUom) = 1),Num(Sum([FieldAA]),'#,##0.##'),

Num(

    (sum(Sales)

      / if((GetFieldSelections(_BTActiveCurrency) = '$USD'), 1, $(varBTExecSummaryUsdPerGbp))

      /if(GetFieldSelections(_BTUnitOfMeasure) <> 'SQF', 0.09290304, 1))

, '#,##0'))

Celambarasan