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
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
Sept PBI Carousel

Power BI Monthly Update - September 2024

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

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

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

Top Solution Authors
Top Kudoed Authors