Forum Discussion
Display Cumulative Percentage Over Time - Line Chart
- 3 years ago
bgierwi2 OK, well, this is going to depend a bit on what date you use for your x-axis and whether you want to count all Notifications every time or just those that were created prior to the specific date on the axis. Making some simplifying assumptions and using the only date in your sample data it should look something like this:
Measure = VAR __Date = MAX('Table'[Date Work Order Created]) VAR __AllCount = COUNTROWS(ALL('Table')) VAR __CurrentCount = COUNTROWS(FILTER(ALL('Table'),[Date Work Order Created] <> BLANK() && [Date Work Order Created] <= __Date)) RETURN DIVIDE(__CurrentCount, __AllCount, 0)
bgierwi2 Maybe this?
Take a look at these two Quick Measures as I think you want something like them.
https://community.powerbi.com/t5/Quick-Measures-Gallery/Open-Tickets/m-p/409364
https://community.powerbi.com/t5/Quick-Measures-Gallery/Periodic-Billing/m-p/409365
If not, Sorry, having trouble following, can you post sample data as text and expected output?
Not really enough information to go on, please first check if your issue is a common issue listed here: https://community.powerbi.com/t5/Community-Blog/Before-You-Post-Read-This/ba-p/1116882
Also, please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490
The most important parts are:
1. Sample data as text, use the table tool in the editing bar
2. Expected output from sample data
3. Explanation in words of how to get from 1. to 2.
- bgierwi23 years agoAdvocate I
Greg_Deckler - Thank your for the response:
Here is some sample data
All of the notifications are already generated, and planners are creating WOs as they plan the work.
As a Work Order is created, another column shows the date the Work Order is created
This is in progress, eventually every notifiication will have a Work Order, and the progress will be 100%
Notification Work Order Date Work Order Created 17460816 90696104 9/9/2022 17452563 17452566 93072762 9/1/2022 17452680 17452682 95113238 8/15/2022 17452566 17451599 95115572 8/14/2022 17451601 17451602 17451604 99351374 8/1/2022 I would like to have a line chart:
X-Axis showing Date
Y-Axis Showing Count (Work Orders) / Count (Notifications)
That will track the progress of generating Work Orders from 0% to 100%
With this sample data, the progress should start at 0% and end at 50% (5 Work Orders generated out of 10 Notifications), between 8/1/2022 and 9/9/2022
I would like it to look something like what is below
- Greg_Deckler3 years agoCommunity Champion
bgierwi2 OK, well, this is going to depend a bit on what date you use for your x-axis and whether you want to count all Notifications every time or just those that were created prior to the specific date on the axis. Making some simplifying assumptions and using the only date in your sample data it should look something like this:
Measure = VAR __Date = MAX('Table'[Date Work Order Created]) VAR __AllCount = COUNTROWS(ALL('Table')) VAR __CurrentCount = COUNTROWS(FILTER(ALL('Table'),[Date Work Order Created] <> BLANK() && [Date Work Order Created] <= __Date)) RETURN DIVIDE(__CurrentCount, __AllCount, 0)- bgierwi23 years agoAdvocate I
It worked!
Thank you so much!
I never would have come up with that on my own, this is exactly what I was looking for