Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Calulating MQT using asoftable issue for latest month

Hi all,

I am calculating MQT in one of my application using asoftable.

The problem is i have multiple countries where there is missing latest month sales where as some has latest month sales.

so when i am calculating the mqt sales it blindly summing up last three month sales..

I want the mqt should calculate only for those countries having latest month data.

Attached is the sample application.

Thanks is advance.

Ashish

1 Solution

Accepted Solutions
sushil353
Master II
Master II

Hi,

You can try to use below expression:

if(count({<MonthDiff={"<3"}>}MonthDiff)<3,null(), sum({<IsRolling3={1}>}Sales))

HTH

sushil

View solution in original post

1 Reply
sushil353
Master II
Master II

Hi,

You can try to use below expression:

if(count({<MonthDiff={"<3"}>}MonthDiff)<3,null(), sum({<IsRolling3={1}>}Sales))

HTH

sushil