Forum Discussion

chat_peters's avatar
chat_peters
Helper III
2 years ago
Solved

Explain why dax lookupvalue does not work with RLS

Please help Here's the link to my power bi file  Data model:                         I have a similar RLS measure created. Except it throws an error everytime. Here's my model an...
  • Anonymous's avatar
    Anonymous
    2 years ago

    Hi, chat_peters 

    I'm happy to answer your questions. I have tested your DAX formula; The test results are as follows:

    The main reason for this error is that CUMSTOMDATA () returns a string type data or returns BLANK (). Because worker '[worker ID] is Number, it is reported in Power BI. You can avoid errors by changing the type of worker '[worker id] to Text:

    If this can help you, it's great.

     

     

     

     

    How to Get Your Question Answered Quickly

    If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .

    Best Regards

    Jianpeng Li

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.