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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Zarlot531
Helper V
Helper V

Matrix table issue: drilling down to notes on a transaction (sample of what I want included)

Below is a generalized example of the type of table I'm dealing with. There are multiple notes associated with any given "win." I'd like both a summary of the this data as seen below and an ability to drill down to see the multiple notes for any given sale. What's the the best way to do this? I am guessing that building a matrix using average instead of sum will get me where I need to be. And then somehow I can simply sum the averages instead of having an overall average in the grand total. Maybe I just answered my own question... Is there a better or more elegant way to do this than using average instead of sum for the values? 

 


File321.JPG

1 ACCEPTED SOLUTION
v-frfei-msft
Community Support
Community Support

Hi @Zarlot531 ,

 

To create a calculated table as below. If it doesn't meet your requirement, kindly share your sample data to me if you don't have any Confidential Information. Please upload your files to One Drive and share the link here.

 

Table = 
SUMMARIZECOLUMNS (
    Table1[Group],
    Table1[SubGroup],
    "sales", AVERAGE ( Table1[Sales] ),
    "note", CALCULATE (
        MAX ( Table1[Notes] ),
        FILTER ( Table1, Table1[Note date] = MAX ( Table1[Note date] ) )
    )
)

Capture.PNG

 

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.

View solution in original post

1 REPLY 1
v-frfei-msft
Community Support
Community Support

Hi @Zarlot531 ,

 

To create a calculated table as below. If it doesn't meet your requirement, kindly share your sample data to me if you don't have any Confidential Information. Please upload your files to One Drive and share the link here.

 

Table = 
SUMMARIZECOLUMNS (
    Table1[Group],
    Table1[SubGroup],
    "sales", AVERAGE ( Table1[Sales] ),
    "note", CALCULATE (
        MAX ( Table1[Notes] ),
        FILTER ( Table1, Table1[Note date] = MAX ( Table1[Note date] ) )
    )
)

Capture.PNG

 

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.