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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

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
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors