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: 
Not applicable

interval table

hi i have a table with a calculated dimension( periode en jours) i  want to count values between  120  and 240 in this table  any ideas

please?




q.PNGCapture.PNG

1 Solution

Accepted Solutions
swuehl
MVP
MVP

You want to count in which context? In a text box?

Maybe like

Sum(

    Aggr(

        If(Interval(DATA_BOLLA-DATE_COMM_LIV, 'd') > 120 and Interval(DATA_BOLLA-DATE_COMM_LIV, 'd')  < 240, 1, 0),

        [NUM_COMM_...]  // replace with your full field name you've used in your chart

     )

)

View solution in original post

5 Replies
sunny_talwar

May be this:

If(Interval(DATA_BOLLA-DATE_COMM_LIV, 'd') > 120 and Interval(DATA_BOLLA-DATE_COMM_LIV, 'd')  < 240, 1, 0)

Not applicable
Author

thanks for your reply i want to count haw many values between 120 and 240 in this calculated dimension ?

swuehl
MVP
MVP

You want to count in which context? In a text box?

Maybe like

Sum(

    Aggr(

        If(Interval(DATA_BOLLA-DATE_COMM_LIV, 'd') > 120 and Interval(DATA_BOLLA-DATE_COMM_LIV, 'd')  < 240, 1, 0),

        [NUM_COMM_...]  // replace with your full field name you've used in your chart

     )

)

sunny_talwar

I guess then follow how Stefan mentioned:

Count(Aggr(If(Interval(DATA_BOLLA-DATE_COMM_LIV, 'd') > 120 and Interval(DATA_BOLLA-DATE_COMM_LIV, 'd')  < 240, 1, 0), YourChartDimensions))

Not applicable
Author

thank you it works