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
coding
Frequent Visitor

Show only lastest value based on last date and status

Hi, 

 

I have/created this table: 

coding_0-1669291561719.png

I want to show only the lastest value for each pipeline.

For example, in that example I just wanted to show the status "Succeeded" for pipeline1 and the status "Failed" for pipeline2. If the pipeline has not yet finished and it is inProgress it would only show the status InProgress (in this case it would be the last case to be shown because it wouldn't have the End Date yet)

 

How to achieve the desired result?
Thanks for your helps.

1 ACCEPTED SOLUTION

Hi @NikhilChenna ,

I solved my problem with just one measure:

End T =
MAXX (
    SUMMARIZE (
        'EDH PRO Monitor',
        'EDH PRO Monitor'[Duration],
        'EDH PRO Monitor'[Status],
        'EDH PRO Monitor'[PipelineName]
    ),
    MAX ( 'EDH PRO Monitor'[End] )
)


Output:

coding_1-1669300547047.png

but thanks a lot for your suggestions and answers👍,

Kind regards. 

 

View solution in original post

5 REPLIES 5
NikhilChenna
Continued Contributor
Continued Contributor

Hi @coding , i think this the solution

1. Create a summarize table using new table in Power BI, click on the modelling tab and click on the new table option.

NikhilChenna_0-1669293781861.png

 

Summarize_table =
SUMMARIZE(
    'table1',
    'table1'[PipelineName],
    "MAXendDate",MAX('table1'[End Date]),
    "MAXStatus",MAX('table1',[status]
)
 
After creating this you can drag fields from this table and you'll get your output.
 
Regards,
Nikhil Chenna
 
Appreciate with a Kudos!! (Click the Thumbs Up Button)
Did I answer your question? Mark my post as a solution!

Hi @NikhilChenna thanks for your answer ! 😊

 

I had already tested this approach too and unfortunately it wasn't giving me the intended result:

coding_0-1669294867253.png

Once again thanks a lot and kind regards !

 

NikhilChenna
Continued Contributor
Continued Contributor

Hi @coding ,

 

In that case what you can do is, 

 

1. Create another calculated column in the summarized table. 

2. Column =

IF('Maintable'[EndDate]<>Blank(),

LOOKUPVALUE( 'Maintable' [Status], 'Maintable'[Pipeline], 'Summarizedtable'[Pipeline])

)

 

Regards,

Nikhil Chenna

 

Appreciate with a Kudos!! (Click the Thumbs Up Button)
Did I answer your question? Mark my post as a solution!

Hi @NikhilChenna ,

I solved my problem with just one measure:

End T =
MAXX (
    SUMMARIZE (
        'EDH PRO Monitor',
        'EDH PRO Monitor'[Duration],
        'EDH PRO Monitor'[Status],
        'EDH PRO Monitor'[PipelineName]
    ),
    MAX ( 'EDH PRO Monitor'[End] )
)


Output:

coding_1-1669300547047.png

but thanks a lot for your suggestions and answers👍,

Kind regards. 

 

How can I do to count the rows?

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.