cancel
Showing results for 
Search instead for 
Did you mean: 
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
Memorable Member
Memorable Member

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!
Best Stories, Interesting Cases: PowerBI Storytime Newsletter
Linkedin Profile: Linkedin
YouTube Channel: PowerBI Storytime

View solution in original post

2 REPLIES 2
olgad
Memorable Member
Memorable Member

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!
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
PBI Sept Update Carousel

Power BI September 2023 Update

Take a look at the September 2023 Power BI update to learn more.

Learn Live

Learn Live: Event Series

Join Microsoft Reactor and learn from developers.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

MPPC 2023 PBI Carousel

Power Platform Conference-Power BI and Fabric Sessions

Join us Oct 1 - 6 in Las Vegas for the Microsoft Power Platform Conference.

Top Solution Authors
Top Kudoed Authors