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
bsson82
New Member

Please help how to show the cumulative completion rate by date?

Hello Power BI expert,

I have the table like the below.

I would like to show the cumulative completion rate by date for all times when the Status is 'Completed'.

Could you please help me? 

Many thanks.

 

ItemStatusIn ProgressCompleted
ACompleted2020-11-012020-11-06
BCompleted2020-11-012020-11-19
CCompleted2020-11-032020-11-22
DCompleted2020-11-052020-11-08
ECompleted2020-11-012020-11-02
FCompleted2020-11-232020-11-30
GCompleted2020-11-252020-11-29
HCompleted2020-11-102020-11-22
ICompleted2020-11-182020-11-26
JCompleted2020-11-122020-11-26
KIn Progress2020-11-07 
LNot Started  
MIn Progress2020-11-13 
NIn Progress2020-11-06 
ONot Started  
In Progress2020-11-02 
QIn Progress2020-11-28 
2 ACCEPTED SOLUTIONS
amitchandak
Super User
Super User

@bsson82 , Try a measure like

 

calculate(count(Table[Item]), filter(allselected(Table), Table[Completed] <=max(Table[Completed]) && Table[Status] = "Completed"))

 

Or with a date table

 

calculate(count(Table[Item]), filter(allselected(Date), Date[Date] <=max(Date[Date])), Table[Status] = "Completed")

View solution in original post

v-janeyg-msft
Community Support
Community Support

Hi, @bsson82 

 

It’s my pleasure to answer for you.

According to your description,I think you can create two measure, one is to calculate the desired result and one is to use it in filter pane to filter status='Completed'.

Like this:

filtercompleted = IF(SELECTEDVALUE('Table'[Completed])=BLANK(),0,1)

percentage = var a=COUNTROWS(ALL('Table'))
var b=CALCULATE(COUNT('Table'[Item]),FILTER(ALL('Table'),[Completed]<=MAX('Table'[Completed])&&[Status]="Completed"))
return DIVIDE(b,a)

8.png

Here is my sample .pbix file.Hope it helps.

If it doesn’t solve your problem, please feel free to ask me.

 

Best Regards

Janey Guo

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

4 REPLIES 4
v-janeyg-msft
Community Support
Community Support

Hi, @bsson82 

 

It’s my pleasure to answer for you.

According to your description,I think you can create two measure, one is to calculate the desired result and one is to use it in filter pane to filter status='Completed'.

Like this:

filtercompleted = IF(SELECTEDVALUE('Table'[Completed])=BLANK(),0,1)

percentage = var a=COUNTROWS(ALL('Table'))
var b=CALCULATE(COUNT('Table'[Item]),FILTER(ALL('Table'),[Completed]<=MAX('Table'[Completed])&&[Status]="Completed"))
return DIVIDE(b,a)

8.png

Here is my sample .pbix file.Hope it helps.

If it doesn’t solve your problem, please feel free to ask me.

 

Best Regards

Janey Guo

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hello Jeny Guo,

 

Thats's perfect! it is wokring well.

 

Thanks and Regards,

Bsson82

amitchandak
Super User
Super User

@bsson82 , Try a measure like

 

calculate(count(Table[Item]), filter(allselected(Table), Table[Completed] <=max(Table[Completed]) && Table[Status] = "Completed"))

 

Or with a date table

 

calculate(count(Table[Item]), filter(allselected(Date), Date[Date] <=max(Date[Date])), Table[Status] = "Completed")

Hello,

Thank you so much. it is wokring well.

 

Thanks and Regards,

bsson82

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.