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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
bco_lde
Helper I
Helper I

Transforming Data - Sales orders and archived versions (Business Central Data) - Or DAX ?

Hi there

I want to evaluate how many versions per Sales Quotes our company produce in order to achieve a final result.

Business Central adds each "archived" version as a single line to the archives-table, with a row for quote number (which does not change) and a verson number, counting up. 

bco_lde_0-1666853310414.png

Now I think for my intent I would only need the line per Doc-No. with the highest Version-No. 
Is it possible to transform the table to keep only that line per Doc-No. or would I have to keep those and build something else entirely ? 
My approach then would be to just add up all version counts. count distinct number of doc-NO and divide and be done with it. 
but this doesnt work if I have all lower version numbers inflating the data: 

looing forward for any help / suggestion

thanks in advance

1 REPLY 1
amitchandak
Super User
Super User

@bco_lde , BAsed on what I got

Keep Latest date - Power query (This will remove data)
https://www.youtube.com/watch?v=hidJ5T_DYQ0
https://exceleratorbi.com.au/remove-duplicates-keep-last-record-power-query/

 

Latest based on DAX measure( no data removal)
https://amitchandak.medium.com/power-bi-get-the-last-latest-value-of-a-category-d0cf2fcf92d0

https://amitchandak.medium.com/power-bi-get-the-sum-of-the-last-latest-value-of-a-category-f1c839ee8...

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.