cancel
Showing results for
Did you mean:

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Helper I

## 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?

Regards

3 REPLIES 3
Helper I

Thank you @v-yangliu-msft ,

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:

Regards.

Community Support

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

Super User

@sandraCortes That's The New Hotness...unfortunately. The New Hotness (Custom Matrix Hierarchy) - Microsoft Fabric Community

Become an expert!: Enterprise DNA
External Tools: MSHGQM
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Announcements

#### New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

#### Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.

#### Fabric certifications survey

Certification feedback opportunity for the community.

Top Solution Authors
Top Kudoed Authors