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
Anonymous
Not applicable

Target for task Completion everyday

Hello I have a Tasks Table 

IDStateDate

1127/4/2022
2127/4/2022
3127/4/2022
4127/4/2022
5127/4/2022
6127/4/2022
7127/4/2022
82 
92 
102 
112 
12126/4/2022
13125/4/2022
14125/4/2022
15125/4/2022
162 
172 
182 
19124/4/2022
20124/4/2022

 

since Completion State 1 mean completed

but 2 is Incomplete..

I have a dax for find cumulative Completion over time ..

 

completed %:=calculate(counta(ID),[State] = 1) /counta(ID)*100

 


-------------------------------

 

Cumulative Total:=
CALCULATE([completed %],
FILTER(ALL('tasks'),
tasks[complete_date] <= MAX(tasks[complete_date])
)
)

 

 

now I want a cummulative target for every day to be plot side by side with cumulative total..

(lets say that those tasks should be done in 10 days)

which (total tasks)/10 = 20/10 =2 every day... to calculate target % = 2/20 = 10% every day--> so the graph will show in fisrt date

10% then 20% then 30 % and so on until the max date

 

any help to create dax equation for target

3 REPLIES 3
amitchandak
Super User
Super User

@Anonymous , Try measures like

completed %:= Divide(calculate(counta(tasks[ID]),Filter(tasks, tasks[State] = 1)) ,counta(tasks[ID]))


Cumulative Total:=
CALCULATE([completed %],
FILTER(ALL('tasks'),
tasks[complete_date] <= MAX(tasks[complete_date] && not(isblank(tasks[complete_date])) )
)
)

 

But better use date table join with date  and use date from date table in visual

 

Cumulative Total:=
CALCULATE([completed %],
FILTER(ALL('Date'),
Date[Date] <= MAX(Date[Date])) , not(isblank(tasks[complete_date])) )

 

Why Time Intelligence Fails - Powerbi 5 Savior Steps for TI :https://youtu.be/OBf0rjpp5Hw
https://amitchandak.medium.com/power-bi-5-key-points-to-make-time-intelligence-successful-bd52912a5bd4

Anonymous
Not applicable

thank you that was helpful to make the cumulative total more accurate...

but how about the target...

maybe if you didnt get my point ... target should be all tasks devided by total days to be needed to be done with... so if I have 20 tasks regardless to complete status and I want them to be finished in 10 days that means each day should have 2 tasks done... those 2 tasks percent from the total which is 20 tasks is 10%

so the graph should draw 10 then 20 then 30 then 40 and so on for each day..

can you help me with that

Hi @Anonymous,

Can you please share a pbix or some dummy data that keep raw data structure with expected results? It should help us clarify your scenario and test to coding formula.

How to Get Your Question Answered Quickly  

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

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.