Skip to main content
Announcements
Customer Spotlight: Discover what’s possible with embedded analytics Oct. 16 at 10:00 AM ET: REGISTER NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Conditional output to Table Box... or to smth else?

I have a table containing insurance contracts data like the following:

CompanyIDCompanyNameContractIDStartDateEndDate
1A101.01.201331.12.2013
1A201.01.201431.12.2014
2B301.01.201331.12.2013
2B401.04.201431.03.2015
3C501.01.201431.12.2014

As a result in Table box I need CompanyID and CompanyName of the companies that do not have an active contract on the desired date (received from input box or just now() ). So for today (30.01.2014) I should have Table Box containing only {2,B}. I have no idea, how to make a self join with conditions and dynamically apply it to the Table Box. Or I should use some other sheet object instead? Thanks!

1 Solution

Accepted Solutions
maxgro
MVP
MVP

try this

count({$ <StartDate=-{"<=$(=floor(Today()))"},EndDate={">=$(=floor(Today()))"}>} StartDate)

see attachment

View solution in original post

4 Replies
maxgro
MVP
MVP

try this

count({$ <StartDate=-{"<=$(=floor(Today()))"},EndDate={">=$(=floor(Today()))"}>} StartDate)

see attachment

Not applicable
Author

Thanks! As far as I understood, such conditions can not be applied to TextBox, only to chart?

maxgro
MVP
MVP

Textbox

you can use expression in textbox (in caption, .....) and

=count({$ <StartDate=-{"<=$(=floor(Today()))"},EndDate={">=$(=floor(Today()))"}>} StartDate)

is an expression

So the answer is: you can, yust create a textbox and use the expression as text

Tablebox

No, because you can't use expression in tablebox

Not applicable
Author

You're right, I meant TableBox. Friday... ;-). Thanks again!