Jump to content

Recommended Posts

Posted

Hi, 

I am hoping someone could show me if it's possible to use a measure and join to other tables,  I ideally would like to get a percentage of self service requests but exclude any where a member of ICT is a customer

in a report I would left join the h_sys_accounts table and use the h_class field to do this but I can't seem to get this to work in a measure

Posted

Hi @Jim

You could try something like this in the WHERE clause?

h_fk_user_id not in ( select h_user_id from h_sys_accounts where h_class = '1' )

Hopefully this works.

Thanks,

Samuel

  • Thanks 1
Posted

Hi @samwoo 

Thank you, I did attempt an IN statement similar to this but my sql is not so good :D this has worked brilliantly thankyou 

Posted

Hi @Jim,

No problem at all :)

I hope you managed to capture the code after I made a slight amendment to it... I accidentally set to where h_class != '1' but it should've been h_class = '1'.

Basically restricts where the users is not in the list of accounts where their class is equals to '1'.

  • Haha 1
Posted

I caught it before and the percentage was really low and it should have gone up so I've just flipped it now :D I wondered why it was looking worse 

  • Haha 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...