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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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