Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

if statement into set analysis

i am using this if statement in straight table expression please help me to convert this in set analysis

=if(SHIFTSTARTTIME<IN1 and time((IN1-SHIFTSTARTTIME),'hh:mm:ss')<'00:10:00','Yes','No')

5 Replies
SergeyMak
Partner Ambassador
Partner Ambassador

Hi

In your case I would add if(SHIFTSTARTTIME<IN1 and time((IN1-SHIFTSTARTTIME),'hh:mm:ss')<'00:10:00','Yes','No') AS YourDimension in the load script

and then just use it as dimension.

I don't see how you can convert it to set analysis, just because you don't use aggregation functions like sum, count etc. in this expression

Regards,
Sergey
SunilChauhan
Champion
Champion


Only({<SHIFTSTARTTIME={"<$(=IN1)"}, IN1-SHIFT={'<00:10:00'}>} 'Yes') +

same this expression only change 'Yes'  to 'No'

hope this helps

Sunil Chauhan
Not applicable
Author

if

i want to show if (shiftstarttime<in1, count(employee)) in set

Not applicable
Author

if

i want to show if (shiftstarttime<in1, count(employee)) in set

how will i show it

SunilChauhan
Champion
Champion

count({<shiftstarttime={<$(=only(in1))}>employee)

Sunil Chauhan