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
Cayshin
Frequent Visitor

Multi-row Matrix, when collapsed, how to show the LAST entry values?

I have a Maxtrix built from data based on when a Client visits.

Cayshin_2-1623154927645.png

The Rows are organized by "Client Name" then "Visit Date". Columns being what's shown. When expanded, the Rows look like this:

Cayshin_1-1623154833679.png

 

When the rows are collapsed, the value shown under Last Visit Date, Weekday, etc... are the FIRST values found for that Client.

Is it possible to flip that, so instead the LAST values are shown?

So when collapsed, the first Client should show the values of "5/12/2021", "Wednesday", "8:00 AM" ,"3" instead of what's seen in the first picture?

 

I can get the Last Visit Date working by changing the Field to "Latest", but that workaround won't work for the other non-date fields.

Cayshin_3-1623155292451.png

 

Thanks

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

Hi @Cayshin ,

 

Try the following measures:

 

Latest Visit Date = MAX('Table'[Visit Date])
Last Weekday = MAXX( FILTER( 'Table', 'Table'[Visit Date] = MAX('Table'[Visit Date]) ), 'Table'[Weekday] )
Last Visit Time = MAXX( FILTER( 'Table', 'Table'[Visit Date] = MAX('Table'[Visit Date]) ), 'Table'[Visit Time] )
Last Visitors = SUMX( FILTER( 'Table', 'Table'[Visit Date] = MAX('Table'[Visit Date]) ), 'Table'[Visitors] )

image.png

 

If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.

Best Regards,
Winniz

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

View solution in original post

1 REPLY 1
v-kkf-msft
Community Support
Community Support

Hi @Cayshin ,

 

Try the following measures:

 

Latest Visit Date = MAX('Table'[Visit Date])
Last Weekday = MAXX( FILTER( 'Table', 'Table'[Visit Date] = MAX('Table'[Visit Date]) ), 'Table'[Weekday] )
Last Visit Time = MAXX( FILTER( 'Table', 'Table'[Visit Date] = MAX('Table'[Visit Date]) ), 'Table'[Visit Time] )
Last Visitors = SUMX( FILTER( 'Table', 'Table'[Visit Date] = MAX('Table'[Visit Date]) ), 'Table'[Visitors] )

image.png

 

If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.

Best Regards,
Winniz

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

Helpful resources

Announcements
Fabcon_Europe_Social_Bogo

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

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

PBI_Carousel_NL_June

Fabric Community Update - June 2024

Get the latest Fabric updates from Build 2024, key Skills Challenge voucher deadlines, top blogs, forum posts, and product ideas.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

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