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

Announcements
See why IDC MarketScape names Qlik a 2025 Leader! Read more
cancel
Showing results for 
Search instead for 
Did you mean: 
paulyeo11
Master
Master

How to convert set expression to become dynamic

Hi All

Mr Kaushik Solanki help me with the below expression :-

      =money(if([Exec P&L Level] = 's','',Sum({$<YearMonth = {"<=$(=Date(addmonths(Max({$}[YearMonth]),-12),'YY MMM'))"}, month = >}[Amount])), $(vCurrency))

My question is how to make the above expression dynamic , meaning when i select month= jan year=2013 , it will display jan 2013 Balance sheet amount. ( now it does not allow user to select month and year , it just display max month and max year ).

https://www.dropbox.com/s/foqnz3kiddk995k/QV4FS_ver304%20ver%20009.qvw

Above link is my QV doc .

Paul

1 Solution

Accepted Solutions
kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi,

    Have a look at the attachment.

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!

View solution in original post

3 Replies
kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi,

    Have a look at the attachment.

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
Not applicable

HI ,

I dont what was your Requirement .

try this

  

=money(if([Exec P&L Level] = 's','',Sum({$<YearMonth = {"<=$(=Date(addmonths(({$}[YearMonth]),-12),'YY MMM'))"}}[Amount])), $(vCurrency))

//Yusuf Ali

paulyeo11
Master
Master
Author

Hi Kaushik

You are very good , you able to understand what i want. by adding just year in the expression it work fine.

Paul