cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
imannlc Frequent Visitor
Frequent Visitor

Get the latest status per Entry but different dates

Hello PBI Community!

 

I am currently working on a data where an application has a milestone, status, and date, wherein each application have its own dates and milestone progress.

 

Example data:

Application NumberMilestoneStatusStatus Date Tagged
App1New ApplicationNew Application1-Jan-19 8:40
App1Under ReviewUnder Review1-Jan-19 8:45
App1Under ReviewFindings1-Jan-19 9:15
App2New ApplicationNew Application1-Jan-19 10:00
App2Under ReviewUnder Review2-Jan-19 7:54
App2Passed ReviewFor booking3-Jan-19 16:00
App2BookedBooked3-Jan-19 18:23
App3New ApplicationNew Application3-Jan-19 8:12
App4New ApplicationNew Application4-Jan-19 9:15
App4Under ReviewUnder Review4-Jan-19 13:11

 

And I want the data in Power BI to be like this:

New Application1
Under Review2
   -Findings1
   -Under Review1
Booked1

 

What functions should I use to read the latest entry regardless of Application Number? Because currently I'm having this one:

New Application4
Under Review4
   -Findings1
   -Under Review3
Passed Review1
   -For booking1
Booked1

 

which captures all entry.

 

 

Thank you in advance for your help!

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: Get the latest status per Entry but different dates

Hi @imannlc ,

You can add a additional conditions to exclude passed milestone status:

measure =
CALCULATE (
    COUNTROWS ( VALUES ( Table[Status] ) ),
    VALUES ( Table[Milestone] ),
    Table[Milestone] <> "Passed Review"
)

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin Sheng
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.



For learning resources/Release notes, please visit: | |
3 REPLIES 3
Community Support Team
Community Support Team

Re: Get the latest status per Entry but different dates

Hi @imannlc ,

You can create a matrix visual and use milestone, status as row, write a measure as value, then drill row fields to bottom level and it should display the result you wanted.

measure =
CALCULATE (
    COUNTROWS ( VALUES ( Table[Status] ) ),
    VALUES ( Table[Milestone] )
)

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin Sheng
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.



For learning resources/Release notes, please visit: | |
imannlc Frequent Visitor
Frequent Visitor

Re: Get the latest status per Entry but different dates

Hi @v-shex-msft,

 

I got all the numbers but I got an extra row and count which I shouldn't get (Passed Review - For booking).

 

Untitled.png

Community Support Team
Community Support Team

Re: Get the latest status per Entry but different dates

Hi @imannlc ,

You can add a additional conditions to exclude passed milestone status:

measure =
CALCULATE (
    COUNTROWS ( VALUES ( Table[Status] ) ),
    VALUES ( Table[Milestone] ),
    Table[Milestone] <> "Passed Review"
)

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin Sheng
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.



For learning resources/Release notes, please visit: | |

Helpful resources

Announcements
Back to School Contest

Back to School Contest

Engage and empower students with Power BI!

MBAS Gallery

Watch Sessions On Demand!

Continue your learning in our online communities.

Summit Australia 2019

Summit Australia 2019

Travel to Melbourne and network with thousands of peers!

PBI Community Highlights

PBI Community Highlights

Check out what's new in the Power BI Community!

Top Ideas
Users Online
Currently online: 271 members 2,716 guests
Please welcome our newest community members: