Jim Posted March 29, 2023 Posted March 29, 2023 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
samwoo Posted March 30, 2023 Posted March 30, 2023 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 1
Jim Posted March 30, 2023 Author Posted March 30, 2023 Hi @samwoo Thank you, I did attempt an IN statement similar to this but my sql is not so good this has worked brilliantly thankyou
samwoo Posted March 30, 2023 Posted March 30, 2023 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'. 1
Jim Posted March 30, 2023 Author Posted March 30, 2023 I caught it before and the percentage was really low and it should have gone up so I've just flipped it now I wondered why it was looking worse 1
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now