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
Stubby
Helper I
Helper I

help with Summarize

Hi All

Please can I have some help with the following:

I have the following DAX creating a table that is pulling Item from the main items table. As you can see from the screen shot below some items have had multiple revisions. How do I create a table that shows the highest revision number. so in the table below i would like to only see revision 20.0

 

Any help would be much appreciated.

 

Stubby_0-1651835587858.png

 

1 ACCEPTED SOLUTION
sanalytics
Solution Supplier
Solution Supplier

@Stubby 

 

Can you try 
summarize(les_items_data,les_items_data[item_id],les_items_data[Tile],"Max Revison",Max(les_items_data[Revision_Number] ) )

and let us know if it works or not.

 

Regards

sanalytics

 

if it is your solution then please like and accept it as your solution

View solution in original post

6 REPLIES 6
sanalytics
Solution Supplier
Solution Supplier

@Stubby 

 

Can you try 
summarize(les_items_data,les_items_data[item_id],les_items_data[Tile],"Max Revison",Max(les_items_data[Revision_Number] ) )

and let us know if it works or not.

 

Regards

sanalytics

 

if it is your solution then please like and accept it as your solution

Hi sanalytics

 

yes that did work if I took out the Title element which changed on each revision.

 

Many thanks

 

@Stubby 

 

Glad it works..Much appreciate if you provide kudos.

 

Regards

sanalytics

I've Kudos your last post 😁

Could I ask for a little more help!

by applying your solution i get the following result

Stubby_0-1651844152930.png

I gather the summarize is saying each of the titles is unique hence why they are showing. I only want to show the Title with MaxRevision 20 (in this example). My ulitimate goal is to have a table that shows the most recent Item Title for each Item_id.

 

 

@Stubby 

Please provide some dummy data to work on..

 

Regards

sanalytics

Thanks for the reply. Since posting the database owner has changed his requirements and no longer requires what I am trying to achieve. Your initial help was much appreciated though

 

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.