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
MattiasFly
New Member

How to spread value over period of time

Good day,

 

I have a PowerBi report conncected to a Microsoft project (custom entreprise template) and I would like to visualise ressources utilization over time.

For this in the "Tasks" table I have the following fields:

  • DateTaskStart
  • DateTaskFinish
  • Taskduration
  • TaskWork
  • RessourceName

 

Right now I'm using a Line Chart with DateTaskStart in Axis, RessourceName in Legend and TaskWork in Values. A Matrix would also be fine.

 

The problems are:

  • The work is not spread over the TaskDuration
  • The line chart visual goes straight from data point to data point without reseting to 0 when there is no work.

 

I think that I need to generate a calendar table, spread the Work over the TaskDuration and put 0 when there is no work.

 

Project must already be doing this in order to generate this kind of Matrix (here at the week drill level):

Work repartition.PNG

 

I'm not good enough at PBI yet to manage that operation. Can you please help me, or lead me in the right direction?

 

Thank you.

1 ACCEPTED SOLUTION
v-yuta-msft
Community Support
Community Support

@MattiasFly ,

 

You may create a calculate column to replace "" with 0 so in line chart the point will be direct to 0, not the next value. 

TaskDuration New =
IF ( Tasks[TaskDuration] = "", 0, Tasks[TaskDuration] )

In addtion, if it still can't meet your requirement, please share more specific details about your requirement, and also share some sample data if possible.

 

Community Support Team _ Jimmy Tao

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-yuta-msft
Community Support
Community Support

@MattiasFly ,

 

You may create a calculate column to replace "" with 0 so in line chart the point will be direct to 0, not the next value. 

TaskDuration New =
IF ( Tasks[TaskDuration] = "", 0, Tasks[TaskDuration] )

In addtion, if it still can't meet your requirement, please share more specific details about your requirement, and also share some sample data if possible.

 

Community Support Team _ Jimmy Tao

If this post helps, then please consider Accept it as the solution to help the 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.