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

How can it works as a filter

Hi All ,

Please see my attached sample model.

Capture.PNG

In the report , The status condition works base on calculation of the fields Stock on hand, Actual receipts, and Forecast units.

How to make the status filter work when selected ; "Stock out" or "No Stock Out".

1 Solution

Accepted Solutions
sunny_talwar

May be with a calculated dimension

=Aggr(If(GetSelectedCount(Status) = 0, [Product/Code],

  If(GetFieldSelections(Status) = 'Stock Out', if(sum(SOH)+sum(purchase_receipts)< (50/100 * sum([Forecast Units])), [Product/Code]),

  If(GetFieldSelections(Status) = 'No Stock Out', if(sum(SOH)+sum(purchase_receipts) >= (50/100 * sum([Forecast Units])), [Product/Code])))), [Product/Code])

View solution in original post

1 Reply
sunny_talwar

May be with a calculated dimension

=Aggr(If(GetSelectedCount(Status) = 0, [Product/Code],

  If(GetFieldSelections(Status) = 'Stock Out', if(sum(SOH)+sum(purchase_receipts)< (50/100 * sum([Forecast Units])), [Product/Code]),

  If(GetFieldSelections(Status) = 'No Stock Out', if(sum(SOH)+sum(purchase_receipts) >= (50/100 * sum([Forecast Units])), [Product/Code])))), [Product/Code])