Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
berryandcherry6
Creator III
Creator III

Set Analysis Expression issue

Hi,

I have a Expression

Count({$<DateType={completion},final_test_status={"passed"},

YOY_Canon_Year = {"$(=year(max(CanonicalDate))-1)"}>}invitation_id)

For this i am adding to filter it by  Canonical_Month={'Month_Last_Canon_Year'} .

Canonical_Month    Month_Last_Canon_Year

       Jan                                 May

       Feb                                 June  

      MAr                                  July

       Apr                                  Aug

      MAy

      June

       July

       Aug

        Sep

        Oct

        Nov

        Dec

So my expression becomes 

Count({$<DateType={completion},final_test_status={"passed"},

YOY_Canon_Year = {"$(=year(max(CanonicalDate))-1)"},Canonical_Month={'Month_Last_Canon_Year'}>}invitation_id)

But  this Canonical_Month={'Month_Last_Canon_Year'}  is not getting applied. Count gives Zero.

Please help me on this.

10 Replies
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

The Canonical _Month field contains values like 'Jan' and 'Feb'. It does not contain a value 'Month_Last_Canon_Year'.

Perhaps (though I doubt it) this works:

Count({$<DateType={completion},final_test_status={"passed"},

YOY_Canon_Year = {"$(=year(max(CanonicalDate))-1)"},Canonical_Month={"=Canonical_Month=Month_Last_Canon_Year"}>}invitation_id)


talk is cheap, supply exceeds demand
berryandcherry6
Creator III
Creator III
Author

Hi,

Thanks for reply

With or without  condition of Canonical_Month={"=Canonical_Month=Month_Last_Canon_Year"} gives same counts

Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Thought as much. Try putting that condition in an if statement: count({...etc...}if( Canonical_Month=Month_Last_Canon_Year, invitation_id))


talk is cheap, supply exceeds demand
berryandcherry6
Creator III
Creator III
Author

Hi,

This gives me some large number,Not valid count

count({<DateType = {invitation},

YOY_Canon_Year = {"$(=year(max(CanonicalDate))-1)"}>}if( Canonical_Month=Month_Last_Canon_Year, invitation_id))

Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Post a small qlik sense app that demonstrates the problem.


talk is cheap, supply exceeds demand
berryandcherry6
Creator III
Creator III
Author

Are you asking for Qvf file?

Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Yes


talk is cheap, supply exceeds demand
berryandcherry6
Creator III
Creator III
Author

Please see the attached file

Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Please post a smaller qlik sense app that demonstrates the problem


talk is cheap, supply exceeds demand