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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
juleshelen
Frequent Visitor

Creating a percentage complete based on dates

Hi 

I wonder if anyone can provide me with some help.

I have a check that is completed once a quarter and the results of that check(completed via a form) are sent into PBI so we can show who has completed the check against a list of shops.

I want to be able to show the percentage that have completed it each quarter on a rolling basis. I have a date table and so far ihave been able to create the below that shows the date of completion but how can i create a percentage count from this that I dont need to change each quarter? I think i need a measure but struggling to write it at the moment

juleshelen_0-1755863800987.png

thanks for any help

1 ACCEPTED SOLUTION
v-sdhruv
Community Support
Community Support

Hi @juleshelen ,

Thank you for sharing the file and explaining in detail. Although I couldnt find completion Date in ShopList Table.
You can try this measure in your file :

Quarterly Completion % =
VAR TotalShops = CALCULATE(DISTINCTCOUNT('Shop List'[Shop Name]), ALL('Shop List'))
VAR CompletedShops = 
    CALCULATE(
        DISTINCTCOUNT('Shop List'[Shop Name]),
        FILTER(
            'Shop List',
            'Shop List'[Date Completed] >= MIN('Date Table'[Date]) &&
            'Shop List'[Date Completed] <= MAX('Date Table'[Date])
        )
    )
RETURN
DIVIDE(CompletedShops, TotalShops, 0)

Let me know if it works for you.
Thank You!

View solution in original post

5 REPLIES 5
v-sdhruv
Community Support
Community Support

Hi @juleshelen ,

Thank you for sharing the file and explaining in detail. Although I couldnt find completion Date in ShopList Table.
You can try this measure in your file :

Quarterly Completion % =
VAR TotalShops = CALCULATE(DISTINCTCOUNT('Shop List'[Shop Name]), ALL('Shop List'))
VAR CompletedShops = 
    CALCULATE(
        DISTINCTCOUNT('Shop List'[Shop Name]),
        FILTER(
            'Shop List',
            'Shop List'[Date Completed] >= MIN('Date Table'[Date]) &&
            'Shop List'[Date Completed] <= MAX('Date Table'[Date])
        )
    )
RETURN
DIVIDE(CompletedShops, TotalShops, 0)

Let me know if it works for you.
Thank You!

Hi

 

that worked - thank you so much for your help

v-sdhruv
Community Support
Community Support

Hi @juleshelen ,

You can try something like this-

PercentageCompletedRollingQuarter =
VAR CurrentQuarterStart = STARTOFQUARTER('Date'[Date])
VAR CurrentQuarterEnd = ENDOFQUARTER('Date'[Date])
VAR TotalShops = CALCULATE(DISTINCTCOUNT('Shops'[ShopName]))
VAR CompletedShops = 
    CALCULATE(
        DISTINCTCOUNT('Table'[ShopNmae]),
        'Table'[CompletionDate] >= CurrentQuarterStart,
        'Table'[CompletionDate] <= CurrentQuarterEnd
    )
RETURN

Assuming you have Completion Date in a table and is connected to Shops and Date Table.
If I  isunderstood anything, kindly provide a sample data/ sample pbix file excluding sensitive data.

Thank You

Hi

 

think this is sort of what I am trrying to do - thanks for the help.

I have some sample data in excel . https://www.dropbox.com/scl/fi/cs5jz5giy7d7rxi7a0byz/sample-data.xlsx?rlkey=e9misp6x2517qebf4gtjtn4j... 

I have a list of shops, a list of dates they completed the quarterley checks and a date table that shows quarters and financial years. 

 

What I am trying to do is to be able to show both a count of completion per quarter and FY and also a way to show an individual shop has completed per quarter. at the moment I have a calculated column which pulls the most recent date it was completed into the shop list but this relies on me changing the date each quarter.

SM Quarterly check  = IF('Shop List '[date last completed - SM quarterly check] > DATE(2025,06,29),"complete","incomplete")
 
Apologies if i have provided the data in an incorrect way.
 
danextian
Super User
Super User

Hi @juleshelen 

Please provide a workable sample data (not an image), your expected result from the same sample data and your reasoning behind (for example for row1, what are your expected values and why?). You may post a link to Excel or a sanitized copy of your PBIX stored in the cloud.





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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