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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.