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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
MuraliPrasath
Creator III
Creator III

Includes all Year Sales when User selects only Current Year.

Hi Qlik,

I have Year filter which shows Years from 2021 to 2023 (Current Year).

My requirement is to show SalesKPI in the below scenario. 

  • If User selects Current Year (2023) then it should show all the Years Sales. 
  • If User selects Other than Current Year then that particular Year Sales only should show. Can you help me on this?
  •  
  • MuraliPrasath_0-1681089896171.png

     

 

 

Labels (4)
1 Solution

Accepted Solutions
anat
Master
Master

If(getfieldselection(FY) =year(today()), sum({<FY=>}sales) , sum(sales)) 

View solution in original post

3 Replies
anat
Master
Master

If(getfieldselection(FY) =year(today()), sum({<FY=>}sales) , sum(sales)) 

anat
Master
Master

Bypass the FY selection if selected year is current year else show the data as per selection

MuraliPrasath
Creator III
Creator III
Author

Thank you 🙂 That worked perfectly. 😀