Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
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')
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
Only({<SHIFTSTARTTIME={"<$(=IN1)"}, IN1-SHIFT={'<00:10:00'}>} 'Yes') +
same this expression only change 'Yes' to 'No'
hope this helps
if
i want to show if (shiftstarttime<in1, count(employee)) in set
if
i want to show if (shiftstarttime<in1, count(employee)) in set
how will i show it
count({<shiftstarttime={<$(=only(in1))}>employee)