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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Easley08
Helper I
Helper I

Show latest list of products with the same invoice

Hi, 

is there a way to show the latest list of purchase based on the same invoice in the 1st table 

Easley08_0-1741928273022.png

 

 

 

 

thanks.

 

1 ACCEPTED SOLUTION
bhanu_gautam
Super User
Super User

@Easley08 Create a new table that groups the data by Invoice No and shows the latest purchase date for each invoice. 

LatestPurchases =
SUMMARIZE(
'YourTableName',
'YourTableName'[Invoice No],
"Latest Purchase Date", MAX('YourTableName'[Purchase Date])
)

 

Join this new table with your original table on Invoice No and Purchase Date to get the latest purchases.

LatestPurchasesDetails =
FILTER(
'YourTableName',
'YourTableName'[Purchase Date] = RELATED(LatestPurchases[Latest Purchase Date]) &&
'YourTableName'[Invoice No] = RELATED(LatestPurchases[Invoice No])
)

 

Finally, use the LatestPurchasesDetails table to create your visual in Power BI. This will show the latest list of products for each invoice.




Did I answer your question? Mark my post as a solution! And Kudos are appreciated

Proud to be a Super User!




LinkedIn






View solution in original post

4 REPLIES 4
v-tsaipranay
Community Support
Community Support

Hi @Easley08 ,

 

May I ask if you have resolved this issue? If so, please mark the helpful reply and accept it as the solution. This will be helpful for other community members who have similar problems to solve it faster.

 

Thank you.

v-tsaipranay
Community Support
Community Support

Hi @Easley08 ,

 

May I ask if you have resolved this issue? If so, please mark the helpful reply and accept it as the solution. This will be helpful for other community members who have similar problems to solve it faster.

 

Thank you.

v-tsaipranay
Community Support
Community Support

Hi @Easley08 ,

Thank you for reaching out to the Microsoft Fabric Community.


I wanted to check if you had the opportunity to review the information provided by @bhanu_gautam . Please feel free to contact us if you have any further questions. If the response has addressed your query, please accept it as a solution and give a 'Kudos' so other members can easily find it.


Thank you.

bhanu_gautam
Super User
Super User

@Easley08 Create a new table that groups the data by Invoice No and shows the latest purchase date for each invoice. 

LatestPurchases =
SUMMARIZE(
'YourTableName',
'YourTableName'[Invoice No],
"Latest Purchase Date", MAX('YourTableName'[Purchase Date])
)

 

Join this new table with your original table on Invoice No and Purchase Date to get the latest purchases.

LatestPurchasesDetails =
FILTER(
'YourTableName',
'YourTableName'[Purchase Date] = RELATED(LatestPurchases[Latest Purchase Date]) &&
'YourTableName'[Invoice No] = RELATED(LatestPurchases[Invoice No])
)

 

Finally, use the LatestPurchasesDetails table to create your visual in Power BI. This will show the latest list of products for each invoice.




Did I answer your question? Mark my post as a solution! And Kudos are appreciated

Proud to be a Super User!




LinkedIn






Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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