Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago
Solved

Matrix not displaying all values while still counting them in totals

i everybody,

 

I'm currently working on a report involving timeregistration, which involves files with entries for time off measured in hours. I display these in a matrix, and have three slicers (year, month, employee name). My problem is that while the matrix total show the correct amount of hours, they are not displayed in the matrix fields. Here's an example: this employee has 16h off in August of this year, which the total shows. When I access the records for the total, it shows two entries for the 17th and 31st. 

 

I don't have any measures, and as far as I know no other filters that could prevent the values from being displayed (if they were filtered, they wouldn't be counted towards the total, right?)

 

Values only shown in total.

  • Hi Anonymous,

     

    Please check out the file in the attachment. I have made some changes. Now you will have a model with best practices. I will check more to find out why. Please follow my adjustments for now.

    1. Create a new table. 

    FullNames =
    DISTINCT (
        UNION ( VALUES ( Timesheets[Full name] ), VALUES ( Vakantiedagen[Full name] ) )
    )
    

    2. Delete the *:* relationship and create new ones. 

    3. Use the new column from the new table in a slicer instead. 

    Matrix_not_displaying_all_values_while_still_counting_them_in_totals

     

    One tip: Don't upload sensitive data here.

     

    Best Regards,

    Dale

5 Replies

  • v-jiascu-msft's avatar
    v-jiascu-msft
    Icon for Microsoft Employee rankMicrosoft Employee

    Hi Anonymous,

     

    Please share the file or a dummy one which can reproduce the issue. Just see from your information here, that's impossible. We need to check the data and its structure of the model. 

     

    Best Regards,

    Dale

    • Anonymous's avatar
      Anonymous
      Not applicable

      Hello Dale,

       

      I added a link to the file in my post. Thanks in advance for looking, this is driving me absolutely cray-zee.

      • v-jiascu-msft's avatar
        v-jiascu-msft
        Icon for Microsoft Employee rankMicrosoft Employee

        Hi Anonymous,

         

        Please check out the file in the attachment. I have made some changes. Now you will have a model with best practices. I will check more to find out why. Please follow my adjustments for now.

        1. Create a new table. 

        FullNames =
        DISTINCT (
            UNION ( VALUES ( Timesheets[Full name] ), VALUES ( Vakantiedagen[Full name] ) )
        )
        

        2. Delete the *:* relationship and create new ones. 

        3. Use the new column from the new table in a slicer instead. 

        Matrix_not_displaying_all_values_while_still_counting_them_in_totals

         

        One tip: Don't upload sensitive data here.

         

        Best Regards,

        Dale