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: 
engr_farhanqadr
Creator
Creator

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
sunny_talwar

May be try this

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

Dear sunny,

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

sunny_talwar

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

engr_farhanqadr
Creator
Creator
Author

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...