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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
aameen1515
Helper I
Helper I

Weekly total of "in progress"

Hi All

 

I have a dataset which has Issue received date & a corresponding status as "In progress".

Once the issue is resolved the Resolution date field gets populated & status changes to "Resolved"

I want to plot the bar chart for Weekly In Progress Count. i.e. in the week when an issue is resolved it is not counted as "In Progress" that week but until the issue is resolved each week that issue will be considered as "In Progress"

 

Sample data below

 

StatusIssue received dateIssue received weekIssue resolved dateIssue resolved week
In Progress01-Jan-20124-Feb-209
Resolved03-Feb-20628-Mar-2013
In Progress06-Mar-201029-Apr-2018
In Progress30-Jan-20524-Mar-2013
Resolved06-Feb-20631-Mar-2014
Resolved10-Mar-201103-May-2019
Resolved11-Apr-201504-Jun-2023
In Progress09-Mar-201102-May-2018

 

In this table above the first row entry should show as In Progress for next 8 weeks in the bar chart.

Thus on a weekly basis all In Progress data should be shown as a sum total of In Progress each week.

 

I am new to power bi & if this is a dumb query, I apologize in advance.

 

Thanks

 

10 REPLIES 10
ryan_mayu
Super User
Super User

@aameen1515 

you need to have a calendar table and create weeknum and inprogressnum column

 

weeknum = WEEKNUM(datetime[Date])

inprogressnum = CALCULATE(COUNTROWS('table'),FILTER('table','table'[Issue received week]<=datetime[weeknum]&&'table'[Issue resolved week]>=datetime[weeknum]&&'table'[Status]="In progress"))

 

1.PNG

Then create a bar chart and set the average value for inprogressnum

2.PNG

Hope this is helpful.





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

Proud to be a Super User!




Hi @ryan_mayu 

 

I am getting the following error:

 

aameen1515_0-1594140022005.png

The Rfx main table data is as below:

 

aameen1515_1-1594140770510.png

it also has the req received week & req executed week columns. These two columns show up in data table (as I created them) but I dont see these 2 columns in POwer query editor.

 

aameen1515_2-1594140865268.png

 

I am kind of a little lost. Any help would be great @ryan_manu

 

Thanks

@aameen1515 

datetime is the table I created , please change to your table name and weeknum is also the column in the datatime table.

'yourtable'[weeknumcolumn in your table]

 





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

Proud to be a Super User!




Thanks a lot for clarifying that @ryan_mayu . You are awesome!

 

However, I have a couple of queries more:

 

1) Since the weeknum pulls the week number irrespective of the year, this calculation is giving me an output basis the numeric week number only. e.g. there are entries from same week in the prior years as well. Thus it is considering all as same only. Is there a way we can put a differentiator for years?

 

aameen1515_0-1594142894184.png

 

 

2) In the example above i could only get output once I removed the "In Progress" condition as it was giving me totally blank output with In Progress. However, the status does have the exact same wordings in the data set:

 

aameen1515_1-1594143109540.png

 

 

Status options in RFxMain table as below

 

aameen1515_2-1594143175315.png

 

Thansk a ton!

 

@aameen1515 

For the 1st question, I suggest you use yearweek instead of weeknum. e.g yearweek: 201701,201852,201922

For the 2nd question, it's better to share your sample data? I think there are differences  between your real data and the sample data you shared in the first message of this post.

 





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

Proud to be a Super User!




Hi @ryan_mayu

 

Thanks for your response.

I could not find yearweek function in power bi editor. However I have dealt with that issue separately & taking the absolute dates instead of weeknums.

 

Secondly for In progress query, i figured the reason as well. It was showing blank data for In Progress is because if there is an executed date populated the status would be "Executed" & NOT "In Progress", if the req is still In Progress then the executed date would be left balnk. So i tweaked the formula like explained below. There could be an easier way to do it but i did in a longer simpler way.

 

Now here is the situation below:

 

Hi All

 

I need to plot the “In Progress” reqs info in a bar chart by week.

My source table has following info.

 

Non RFx1 is the table name

req recvd dt NR

Executed Date NR

NR Request Status

BuyerId

BuyerName

Requisition#

01-Jan-2020

-

In Progress

2345

John Doe

3478

05-Feb-2020

12-March-2020

Executed

3215

Alex Gomez

4521

09-Mar-2020

-

In Progress

2345

John Doe

8975

14-Mar-2020

-

In Progress

-

-

8975

 

The reqs are identified as “In Progress”, if we have Req status as “In Progress” & the executed date is left blank. Once the req is executed, executed date is populated & status changed to “Executed”. There is also a Buyer column which identifies the buyer name who is currently actioning the requisition. If no buyer has been assigned the buyer name is left blank but the way the system is built the status is auto populated as soon as the requisition is created in the system as in row 4 of the table above.

 

For reporting the “In Progress” trends over the weeks I have created a Calendar table with the help of which I am able to plot the In progress over weeks.

 

I have used these formulas in creation of InProgress columns in Calendar table

 

Non RFx1 InProgress = CALCULATE(COUNTROWS('Non RFx1'),FILTER('Non RFx1',('Non RFx1'[req recvd dt NR])<='Calendar table'[Date] && ('Non RFx1'[Executed Date NR])>='Calendar table'[Date]))+ CALCULATE(COUNTROWS('Non RFx1'),FILTER('Non RFx1',('Non RFx1'[req recvd dt NR])<='Calendar table'[Date] && ('Non RFx1'[NR Request Status]="In Progress" )))

 

Table is as below:

aameen1515_0-1594248429159.png

 

 

A snapshot of the graph is as below:

 

aameen1515_1-1594248429163.png

 

 

But here I have two issues:

 

  • I am not able to filter out the rows which have blank entries against Buyers Id or buyers name . i.e. since no buyer is assigned to the req it is not considered In Progress. Can you help me how to put that condition while filtering the info. I tried some varied logics but could not figure out.

 

  • I also need to be able to filter the data basis the buyers name. e.g. I should be able to know how is the In Progress trend for John Doe, or for Alex Gomez

 

 

Thanks in advance!!

 

@aameen1515 

For the week over year, you can try this.

yearweek = year('datetime'[Date])&right("0"&WEEKNUM(datetime[Date]),2)

inprogressnum = 
CALCULATE(COUNTROWS('table'),FILTER('table','table'[Issue received yearweek]<=datetime[yearweek]&&'table'[Issue resoolved yearweek]>=datetime[yearweek]&&'table'[Status]="In progress"))

 However, if you want to filter by buyers, maybe my solution is not the best for you. So far, I dont have any other solution for this.

 





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

Proud to be a Super User!




aameen1515
Helper I
Helper I

* Correction to the table

 

StatusIssue received dateIssue received weekIssue resolved dateIssue resolved week
In Progress01-Jan-201  
Resolved03-Feb-20628-Mar-2013
In Progress06-Mar-2010 18
In Progress30-Jan-205 13
Resolved06-Feb-20631-Mar-2014
Resolved10-Mar-201103-May-2019
Resolved11-Apr-201504-Jun-2023
In Progress09-Mar-201102-May-2018

 

In this table above the first row entry should show as In Progress for each week till date in the bar chart.

for second row it show as a count In Progress from Week 6 to week 13

Thus on a weekly basis all In Progress data should be shown as a sum total of In Progress issues each week.

@aameen1515 , see if this can help

https://community.powerbi.com/t5/Community-Blog/HR-Analytics-Active-Employee-Hire-and-Termination-tr...

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Hi Amit

 

would you be able to answer this for me?

if you can follow this thread below that would be great.

how can i have a filter for buyers as well.

 

really appreciate your support!

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors