Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Calculated Dimension for Greater than

Hi,

I want to get a calculated dimension for DOH_Start greater than vOneYearBack.

DOH_Start is mm/dd/yyy and vOneYearBack is 12/31/2012.

Any ideas please.

Thank you,

Oneputtgirl

1 Solution

Accepted Solutions
Not applicable
Author

Hi Oneputtgirl,

try this to create a calc dim with DOH_Start:

=if(DOH_Start >= '$(vOneYearBack)', DOH_Start)

May be you have to check "Suppress when Value is Null" for this dimension.

HtH

Roland

View solution in original post

3 Replies
Not applicable
Author

Try something like the following expression:

sum({$<DOH_Start={"<=$(vOneYearBack)"}>} YourField)

Make sure that your date formats match exactly.

Not applicable
Author

Hi Oneputtgirl,

try this to create a calc dim with DOH_Start:

=if(DOH_Start >= '$(vOneYearBack)', DOH_Start)

May be you have to check "Suppress when Value is Null" for this dimension.

HtH

Roland

Not applicable
Author


Thank you for your support everyone. Sivaraj and Rebeccad this would work for an expression, but not for a dimension calculation.