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
Anonymous
Not applicable

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

Hi @Anonymous ,

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
If this post helps, please consider accept as solution to help other members find it more quickly.

View solution in original post

3 REPLIES 3
v-shex-msft
Community Support
Community Support

Hi @Anonymous ,

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
If this post helps, please consider accept as solution to help other members find it more quickly.
Anonymous
Not applicable

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

Hi @Anonymous ,

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
If this post helps, please consider accept as solution to help other members find it more quickly.

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.