Forum Discussion

FatemaRangwala's avatar
FatemaRangwala
Regular Visitor
1 year ago
Solved

Power BI Service query reference relationship error

Hi PowerBI Community,

 

I am facing some weird error in powerbi service which is not shown up in powerbi desktop.

 

While selecting the value from the district slicer in power bi service it throws the below error which is not visible in powerbi desktop:

 

Error fetching data for this visual:

The query referenced a relationship between '<oii>Bank</oii>'[<oii>SD</oii>] and '<oii>SD</oii>'[<oii>SD</oii>], which depends on a column that is not in a valid state.

Can anyone please help?

Thanks in advance!

  • In Power BI Desktop, check Bank[SD] and SD[SD] for:

    • Nulls → Replace or remove them
    • Data type mismatch → Ensure both are the same (e.g., text)

    Check if RLS roles are active and unintentionally filtering the SD table.

    Republish the report after fixing.

  • Hi Har**bleep**ha,

     

    Issue was resolved when I replaced blank values with NA but when again the dataset was refreshed issue was there again and in the dataset 1 table is in the directquery mode.

     

    Thanks,

    Fatema

7 Replies

  • In Power BI Desktop, check Bank[SD] and SD[SD] for:

    • Nulls → Replace or remove them
    • Data type mismatch → Ensure both are the same (e.g., text)

    Check if RLS roles are active and unintentionally filtering the SD table.

    Republish the report after fixing.

    • v-hjannapu's avatar
      v-hjannapu
      Community Support

      Hi FatemaRangwala ,

      I would also take a moment to thank BhavinVyas3003  , for actively participating in the community forum and for the solutions you’ve been sharing in the community forum. Your contributions make a real difference.

      I wanted to check if you had the opportunity to review the information provided. Please feel free to contact us if you have any further questions. If the response has addressed your query, please

      I would also take a moment to thank @ , for actively participating in the community forum and for the solutions you’ve been sharing in the community forum. Your contributions make a real difference.
       

      I wanted to check if you had the opportunity to review the information provided. Please feel free to contact us if you have any further questions. If the response has addressed your query, please Accept it as a solution so that other community members can find it easily.

      Thank you

      Harshitha.

      • v-hjannapu's avatar
        v-hjannapu
        Community Support

        Hi FatemaRangwala,

        Just wanted to check if you had the opportunity to review the suggestion provided?

        If the response has addressed your query, please Accept it as a solution and give a 'Kudos' so other members can easily find it.

         

        Thank You.

        Harshitha.