Qlik Community

QlikView Creating Analytics

Discussion Board for collaboration related to Creating Analytics for QlikView.

engr_farhanqadr
Contributor

Multi selections using set analysis

Hi folks,

I am using the below formula , it is working fine when I select Year and then one value for Quarter like q1 or q2 but I want to multi select in quarter field for 6 months or 9 months what to change in below formula. sum({< [Master_INTIMATION.YearlyQuarter]={"<$(=GetFieldSelections(YearlyQuarter))"}
,[settle_master.Year]={">=$(=GetFieldSelections(Year))"},[settle_master.YearlyQuarter]={">=$(=GetFieldSelections(YearlyQuarter))"} >} PAID)

Thanks

4 Replies

Re: Multi selections using set analysis

May be try this

Sum({<
[Master_INTIMATION.YearlyQuarter] = {"<$(=MaxString(YearlyQuarter))"},
[settle_master.Year] ={">=$(=Max(Year))"},
[settle_master.YearlyQuarter] ={">=$(=MaxString(YearlyQuarter))"}
>} PAID)
engr_farhanqadr
Contributor

Re: Multi selections using set analysis

Dear sunny,

it is not working for selecting more than one field value in yearlyquarter.

Re: Multi selections using set analysis

How do you create [Master_INTIMATION.YearlyQuarter] in the script?

Highlighted
engr_farhanqadr
Contributor

Re: Multi selections using set analysis

like this

floor(Dual('Q' & ceil(Month(TempDate)/3) & ' ' & Year(TempDate), Year(TempDate)*10+ ceil(Month(TempDate)/3))) AS YearlyQuarter,

the problem is : the set analysis I used is not showing correct result when i select two values in YearlyQuarter for half year(q1 q2 ) , i also tried maxstring but no luck...