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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
davidestg
Helper I
Helper I

How to obtain the last status of an item by date

HI: 

 

I have a list of assets (called from A to E) that can be in differents status (Manufactured, Installed, ExitInstallation) by date as follows: 

 

AssetStatusDate
AAssociatedmartes, 21 de agosto de 2018
BAssociatedmartes, 21 de agosto de 2018
CManufacturedmartes, 14 de agosto de 2018
DManufacturedmartes, 14 de agosto de 2018
EManufacturedmartes, 14 de agosto de 2018
EExitInstallationviernes, 19 de octubre de 2018
CExitInstallationmiércoles, 10 de octubre de 2018
EExitInstallationlunes, 5 de noviembre de 2018
CExitInstallationlunes, 5 de noviembre de 2018
DManufacturedlunes, 5 de noviembre de 2018
AAssociatedlunes, 5 de noviembre de 2018
BAssociatedlunes, 5 de noviembre de 2018

 

We need to obtain the last status to each assets as follows: 

 

Status                                                     Count Assets

Associated2
Manufactured1
ExitInstallation2

 

Related with date filter to know in whic status was an asset or all of them. 

 

As well to represent an histogram to view 1 asset wich status has had during the time. 

 

Could you help me? 

 

BR

David

 

1 ACCEPTED SOLUTION
Zubair_Muhammad
Community Champion
Community Champion

@davidestg

 

One way could be to add this calculated column which will flag the last dates for each asset

Then you can use the sum of this column

 

Calc Column =
IF (
    [Date] = CALCULATE ( MAX ( Table1[Date] ), ALLEXCEPT ( Table1, Table1[Asset] ) ),
    1
)

howto.png 

View solution in original post

2 REPLIES 2
Zubair_Muhammad
Community Champion
Community Champion

@davidestg

 

One way could be to add this calculated column which will flag the last dates for each asset

Then you can use the sum of this column

 

Calc Column =
IF (
    [Date] = CALCULATE ( MAX ( Table1[Date] ), ALLEXCEPT ( Table1, Table1[Asset] ) ),
    1
)

howto.png 

Excellent solution, it runs ok!! 

 

You are a crack! 

 

Thanks, 

David

 

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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.

Top Solution Authors
Top Kudoed Authors