Forum Discussion
How to filter ID;s based on another column
- 4 years ago
Hi,
This calculated column formula works
Column = LOOKUPVALUE('refResourceTask (2)'[employee_ttaskresourceid],'refResourceTask (2)'[id],'refResourceTask (2)'[previoustasks_ttaskids])Hope this helps.
Hi Seanan It seems that the end result is the same when using it to measure. Might have something to do with blank spaces 🤔
Hi Anonymous
Would you be able to send the PBIX without any sensitive data so I can take a look?
- Anonymous4 years agoNot applicable
Hi Seanan here is a link to pbix in google drive
https://drive.google.com/drive/folders/19qe1EfS4nS0lTvHAf0JyEPlbtGWXrnPw?usp=sharing
- Seanan4 years ago
Solution Supplier
Hi Anonymous
I've found the issue as to why the measure is returning 0 rows. In the dataset non of the previousId's are matching the Id column. For example, the measure will check row 10 of the previousId column and see if row 10 in the Id column is a match. This means that it is not looking for row 10 of previousId across the entire Id column.
Is the expected result to look for a previousid across the entire Id column?
- Anonymous4 years agoNot applicable
Hi Seanan . These ID:s actually describes employee positions. Id is the position id, previous task id's are telling that is a superior for the particular position etc. So there is a superior-employee hierargy represented and the employee_ttaskresourceid is the person who holds the position
This is a bit tricky as this hierargy is not represented in any other form. For example nowhere in the db there is no clear indicator who is a superior and who is not and I need to report employee work leaves by the superior etc.
here is a sample pic from dev. environment what this data represents