Skip to main content
Announcements
Live today at 11 AM ET. Get your questions about Qlik Connect answered, or just listen in. SIGN UP NOW
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

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

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!