Skip to main content
Announcements
See why Qlik is a Leader in the 2024 Gartner® Magic Quadrant™ for Analytics & BI Platforms. Download Now
cancel
Showing results for 
Search instead for 
Did you mean: 
suvechha_b
Creator III
Creator III

Need help to write expression

How to write the following in expressioon :

sum({<[fis_period] = {[Forecast Fiscal Period-1]} >}[Stag Forecast Units])

5 Replies
MK_QSL
MVP
MVP

sum({<[fis_period] = {'$(=[Forecast Fiscal Period]-1)'} >}[Stag Forecast Units])

PrashantSangle

Hi

You can do this way,

sum({<[fis_period] = {=Max([Forecast Fiscal Period)-1]} >}[Stag Forecast Units])


Regards

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
jagan
Luminary Alumni
Luminary Alumni

Hi,


Try like this, if not works come up with an example



=sum({<[fis_period] = {$(=Max([Forecast Fiscal Period]) - 1)} >}[Stag Forecast Units])


Regards,

Jagan.

suvechha_b
Creator III
Creator III
Author

Please check the ex field. I want to calculate that field for all the BucketDescrition :

suvechha_b
Creator III
Creator III
Author

see the vw_fact_dop_forecast_stagger in the diagram :