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
deumdo
New Member

Select last version entry of an incremental table

Hi together,

 

I am very new and unexperienced to Power BI and need some support how to handle a table with incremental updates.

 

Challenge:

  • I get a table out of Azure with incremental updates of product registrations
  • Each updated information is delivered as a new row
  • Also the version no. of the specified asset is delivered
  • I have an unique identifier for each asset (asset ID)

 

Problem:

  • I only want to consider the last (highest) version of an asset

 

Example:

Asset IDContent.versionProduct NameReg. DateProduct NumberSerial no.
ff906c2e-3986-433e-b3e1-3ae0e4e8bd001Car   
ff906c2e-3986-433e-b3e1-3ae0e4e8bd002Car30.06.2020  
ff906c2e-3986-433e-b3e1-3ae0e4e8bd003Car30.06.2020554123

 

The example above is counted 3 times in my dashboard.

I would like to consider only the highest version (row 3) of an asset.

Unfortunately I also have assets with versions up to because users change the version no. often.

 

I have already tried to implement measures but nothing is working.

 

MeasureLastUpdate =

VAR LatestVersion=
CALCULATE(MAX(TableInventoryassets0[Content.version]); ALL(TableInventoryassets0))
RETURN
IF(MIN(TableInventoryassets0[Content.version]) = LatestVersion;1;0)

 

 

 

I need so a kind of a filter which considers the asset id and the version number.

It would be great if you can support me.

 

Thank you very much for your efforts.

 

 

1 REPLY 1
amitchandak
Super User
Super User

@deumdo , Try a measure like

Measure = 
VAR __id = MAX ( 'Table'[Asset ID] )
VAR __date = CALCULATE ( MAX( 'Table'[Content.version] ), ALLSELECTED ( 'Table' ),  'Table'[Asset ID] = __id ) 
RETURN CALCULATE ( count ( 'Table'[Product Name] ), VALUES ( 'Table'[Category ), 'Table'[Asset ID] = __id, 'Table'[Content.version] = __date )

Helpful resources

Announcements
Europe Fabric Conference

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.

AugPowerBI_Carousel

Power BI Monthly Update - August 2024

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

August Carousel

Fabric Community Update - August 2024

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