Forum Discussion

sandraCortes's avatar
sandraCortes
Helper I
2 years ago

How to include general metrics in a matrix

Hello everyone,

For a requirement the user wants to see several metrics dissagregated per week, so I used a matrix to achieve it and it works ok. However the user also wants to see general metrics in the same matrix that are not dessagregated per week.

 

Do you know how can I achive that?

 

I appreciate your help.

Regards

3 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi  sandraCortes ,

     

    I created some data:

    It's not very clear about your data, I created the data myself to describe.

     

    Here are the steps you can follow:

    Way1

    You can just create a calculated column for Week.

    Week = WEEKNUM('Table'[Date],2)

    By placing them in the matrix field in the form of pictures, they can be grouped and compared:

     

    Way2:
    You can create two measure to place in Values

    Dissagregated =
    COUNTX(
        FILTER(ALL('Table'),'Table'[Week]=MAX('Table'[Week])&&'Table'[general]="dissagregated"),[Week])
    Not dissagregated =
    COUNTX(
        FILTER(ALL('Table'),'Table'[Week]=MAX('Table'[Week])&&'Table'[general]="not dessagregated"),[Week])

    If it doesn't meet your desired outcome, can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data. We can better understand the problem and help you.

     

    Best Regards,

    Liu Yang

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

  • Thank you Anonymous , 

    Let me explain better, the idea is to join these two table in a single one:

    • This is the matrix per student with the measures by week (week start date)

     

    • And this is the single table with the general measures per student:

     

    I appreciate your ideas.

    Regards.