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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
JānisBojars
New Member

Dynamically show dimension values from the latest transaction in a group

I have a transaction table of Container movements (to customer and back to warehouse).

How to make data architecture to get requirements?:
To show in a table visualization latest records (dimension values) of each Container_Id by MovementDateTime?

I made a Metric with a sign 1, if it is a latest record and a solution worked well, when a Container_Id was filtered, but got an error of calculation limit, when I wanted to show all Container_Id.

Any suggestions? How to filter dynamically (using Date filter) latest movement records of each Container_Id?

1 ACCEPTED SOLUTION

Sorry for late answer. Was on vacation.

We decided to transform data on DWH side. Calculate location for each Container at the end of each month and at the lates day of current month. This solution works well for us.

View solution in original post

5 REPLIES 5
v-veshwara-msft
Community Support
Community Support

Hi @JānisBojars ,

Just wanted to follow up on this thread,

From your description, the current measure-based approach works when a single Container_Id is in context but is likely hitting evaluation limits when applied across a larger dataset in a table visual.

 

In such cases, instead of identifying the latest record using a row-level measure, a more efficient approach is to first derive the latest MovementDateTime per Container_Id using aggregation and then filter the table based on that result. This can be implemented either in DAX using aggregation functions or upstream in Power Query.

For reference, Microsoft documentation on grouping and aggregation in Power Query can be found here:
How to GROUP BY or summarize rows - Power Query | Microsoft Learn

 

Similar threads:
Solved: Re: How to write a DAX to get category for most re... - Microsoft Fabric Community

Solved: Summarise table to show last record using a calcul... - Microsoft Fabric Community

 

Hope this helps. Please reach out for further assistance.
Thank you.

Sorry for late answer. Was on vacation.

We decided to transform data on DWH side. Calculate location for each Container at the end of each month and at the lates day of current month. This solution works well for us.

v-veshwara-msft
Community Support
Community Support

Hi @JānisBojars ,

Thanks for reaching out to Microsoft Fabric Community.
Just wanted to check if the response provided by @FBergamaschi was helpful. If further assistance is needed, please reach out.
Thank you.

FBergamaschi
Super User
Super User

Hi @JānisBojars,

you are already able to dinamically filter, since you have your measure working fine. Point seems to be show all the filtered lines in a table matrix at the same time. I am not sure on the limit that the table visual has, but it must be lower than the nr you have I conclude.

 

To understand how to help you, why do you need to show all of them (thousands and thounsands I imagine), at the same time in the table visual?

 

Thanks

 

If this helped, please consider giving kudos and mark as a solution

@me in replies or I'll lose your thread

Want to check your DAX skills? Answer my biweekly DAX challenges on the kubisco Linkedin page

Consider voting this Power BI idea

Francesco Bergamaschi

MBA, M.Eng, M.Econ, Professor of BI

We decided to transform data on DWH side. Calculate location for each Container at the end of each month and at the lates day of current month. This solution works well for us.

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.