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
js1965
Regular Visitor

View Item Completion Percentages Month to Month

Hello All,

I am of course new to this forum and new to PowerBi.  I thank you all for patience and help before, I of course, ask for help.

 

Ultimately my goal is review Monthly Work Order completion percentages for only those Work Orders opened or “ Reported that month” and subsequently closed or “Finished “ that same month.

 

Some by by products are:

 

Work Orders created each month based on “Report Date”.

Work Orders completed each month based on “Actual Finish” Date.

 

What is the best way to approach this?

I have a sample data set below:

Work Order NumberReport DateActual Finish
21-45471410/22/202111/1/2021 
21-45475910/22/202111/1/2021 
21-46175310/28/202111/3/2021 
21-46176210/28/202111/4/2021 
21-46176410/28/202111/2/2021 
21-46176610/28/202111/2/2021 
21-46176810/28/202111/2/2021 
21-46177010/28/202111/4/2021 
21-46177210/28/202111/3/2021 
21-46181610/28/202111/2/2021 
21-47056111/5/202111/12/2021 
21-47056511/5/202111/12/2021 
21-47056711/5/202111/10/2021 
21-47056911/5/202111/9/2021 
21-47057111/5/202111/9/2021 
21-47057511/5/202111/9/2021 
21-47057911/5/202111/12/2021 
21-47058311/5/202111/10/2021 
21-47058511/5/202111/10/2021 
1 ACCEPTED SOLUTION
olgad
Super User
Super User

Hi, 
in Power Query add the custom column 

if Date.StartOfMonth([Report Date])=Date.StartOfMonth([Actual Finish]) then 1 else 0

 

That will tell you which projects were opened and closed in the same month. 

olgad_0-1680352122900.png

 

then, create DAX

% = Divide(Sum(WorkOrder[samemonth]), Count(WorkOrder[Work Order Number]))

olgad_1-1680353055602.png

 


DID I ANSWER YOUR QUESTION? PLEASE MARK MY POST AS A SOLUTION! APPRECIATE YOUR KUDO/LIKE!
PROUD TO BE A SUPER USER!
Best Stories, Interesting Cases: PowerBI Storytime Newsletter
Linkedin Profile: Linkedin
YouTube Channel: PowerBI Storytime

View solution in original post

2 REPLIES 2
olgad
Super User
Super User

Hi, 
in Power Query add the custom column 

if Date.StartOfMonth([Report Date])=Date.StartOfMonth([Actual Finish]) then 1 else 0

 

That will tell you which projects were opened and closed in the same month. 

olgad_0-1680352122900.png

 

then, create DAX

% = Divide(Sum(WorkOrder[samemonth]), Count(WorkOrder[Work Order Number]))

olgad_1-1680353055602.png

 


DID I ANSWER YOUR QUESTION? PLEASE MARK MY POST AS A SOLUTION! APPRECIATE YOUR KUDO/LIKE!
PROUD TO BE A SUPER USER!
Best Stories, Interesting Cases: PowerBI Storytime Newsletter
Linkedin Profile: Linkedin
YouTube Channel: PowerBI Storytime

THANKS!...I was so lost in the weeds. Thanks for the quick response.

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.

Top Solution Authors
Top Kudoed Authors