Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
sandraCortes
Helper I
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?

 

I appreciate your help.

Regards

3 REPLIES 3
sandraCortes
Helper I
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)

sandraCortes_1-1708361259208.png

 

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

sandraCortes_2-1708361701462.png

 

I appreciate your ideas.

Regards.

 

v-yangliu-msft
Community Support
Community Support

Hi  @sandraCortes ,

 

I created some data:

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

vyangliumsft_0-1707127528052.png

 

Here are the steps you can follow:

Way1

You can just create a calculated column for Week.

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

vyangliumsft_1-1707127528054.png

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

vyangliumsft_4-1707127590321.png

 

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])

vyangliumsft_3-1707127559197.png

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

Greg_Deckler
Super User
Super User

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



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Top Solution Authors