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: 
surajdhall
Contributor III
Contributor III

supress data conditionally

Hi All,

I have the below straight table showing current and previous month sales.

In the expression showing previous month sales, i want to show only those sales when there is current month sales for that product, ie supress rows that has no sales in current month.

table.JPG

Please help!

1 Solution

Accepted Solutions
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Use this as the second expression:

If(sum({<MonthYear = {'$(vCurrentMnt)'}>}Margin)/
sum({<MonthYear = {'$(vCurrentMnt)'}>}Sales),
sum({<MonthYear = {'$(vPreviousMnt)'}>}Margin)/
sum({<MonthYear = {'$(vPreviousMnt)'}>}Sales)
)


talk is cheap, supply exceeds demand

View solution in original post

3 Replies
surajdhall
Contributor III
Contributor III
Author

sorry missed highlighting the row. 

Below highlighted row should be supressed from the chart.

table.JPG

Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Use this as the second expression:

If(sum({<MonthYear = {'$(vCurrentMnt)'}>}Margin)/
sum({<MonthYear = {'$(vCurrentMnt)'}>}Sales),
sum({<MonthYear = {'$(vPreviousMnt)'}>}Margin)/
sum({<MonthYear = {'$(vPreviousMnt)'}>}Sales)
)


talk is cheap, supply exceeds demand
surajdhall
Contributor III
Contributor III
Author

Thank you so much!