Forum Discussion
Lookupvalue in calculated column power query not working
I am creating a calculated column using Lookupvalue to state what type action each row is. I am using the following in my power query:
Hi All,
I found my problem.
A relationship between two unrelated tables had a filter going both ways rather than single. This was somehow filtering things incorrectly.
As soon as I changed it to single, the function started working.
5 Replies
- rlymerFrequent Visitor
ImkeF That's what I thought. However when looking at tables of the two next to each other, there are definitely matching values e.g. 265954, 267758, 252026 etc.
They have 2 columns have the same many to one relationship as all the other ID fields have to the ParentID so I can't see why only this one wouldn't be working.
- v-yanjiang-msft
Community Support
Hi rlymer ,
Please try to change the cross filter direction to Both.
Or modify the formula to:
var _isAudit=COUNTROWS(FILTER(Audits,Audits[$AuditsID]=Actions[$ParentID]))Best Regards,
Community Support Team _ kalyjIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- v-yanjiang-msft
Community Support
Hi rlymer ,
Is your problem solved? If so, would you mind accept the helpful replies as solutions? Then we are able to close the thread. More people who have the same requirment will find the solution quickly and benefit here, thank you!
Best Regards,
Community Support Team _ kalyj- rlymerFrequent Visitor
Hi All,
I found my problem.
A relationship between two unrelated tables had a filter going both ways rather than single. This was somehow filtering things incorrectly.
As soon as I changed it to single, the function started working.