Forum Discussion

afbraga66's avatar
afbraga66
Icon for Helper III rankHelper III
5 years ago

Understanding - items with no data and relationships

Hi,

So I have got the table below.

 

The table visual has content from two tables - T1 and T2. The relationship between them is many to many.

Line 1 of the T1 has data in T2, but line 2 of T1 doesn't have data in T2.

 

In the image above there is a pair of things that I don't understand.

- Line 2 should appear by default, but it doesn't. I have checked show items with no data to make it appear. Why?

- For example: measure "Producido (m3)" - if I don't summarize (sum), it shows the line 2 value but won't show the total, if I summarize (sum), it hides the line 2 value and shows the total. Why? How can I have both?

I don't understand this type of behaviour of Power BI.

 

Thank you.

 

Best regards,

André

7 Replies

  • You didn't specify which filter direction you chose, and which columns (from which side of the relationship) you chose. Both have an impact on your observed behavior.

     

    If you like you can read the whitepaper here The Many-to-Many Revolution - SQLBI

    • afbraga66's avatar
      afbraga66
      Icon for Helper III rankHelper III

      Hey lbendlin 

       

      The direction is set to both.

      The columns from which relationship/table is identified in the original post image by T1 and T2.

       

      Thank you.

      Best regards,

      André Braga

      • lbendlin's avatar
        lbendlin
        Icon for Super User rankSuper User

        Yeah, you can't really do that (set the filter direction to both) and expect any meaningful results. Maybe create separate versions of your data model for the different business questions.

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi afbraga66 ,

     

    It's hard to reproduce the scenario, please share some sample data to us.

     

    Best Regards,

    Jay