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
pvravestein
Helper I
Helper I

Show percentage of Completion Date vs Target Date

Hi 

I am looking for a solution to something I have to little experience with.

I have 2 columns as below with example dates:

Completion dateTarget Date
14/11/2022 08:27:0014/11/2022 14:42:00
25/11/2022 09:46:0014/11/2022 16:00:00
14/11/2022 16:00:0014/11/2022 16:15:00
14/11/2022 13:23:0015/11/2022 08:00:00

I need to now which percentage of the completion date is below the target date. This is positive.

So in this case it should be 75% because 3 are within target date.

How can I do this?

Thanks

1 ACCEPTED SOLUTION
Bifinity_75
Solution Sage
Solution Sage

Hi @pvravestein , ya can create this measure: (Name of your table is "Table1"):

Percentage = var a_=CALCULATE(COUNT(Table1[Completion date]),
                Table1[Completion date]<Table1[Target Date])
            return
            DIVIDE(a_,COUNTROWS(Table1),"-")

 

- The result:

Bifinity_75_0-1668711576938.png

Best regards

 

View solution in original post

2 REPLIES 2
Bifinity_75
Solution Sage
Solution Sage

Hi @pvravestein , ya can create this measure: (Name of your table is "Table1"):

Percentage = var a_=CALCULATE(COUNT(Table1[Completion date]),
                Table1[Completion date]<Table1[Target Date])
            return
            DIVIDE(a_,COUNTROWS(Table1),"-")

 

- The result:

Bifinity_75_0-1668711576938.png

Best regards

 

Thanks, it seems to work. Still have some tweaking to do but this was very very helpfull.

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.