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
DavidGM
Helper I
Helper I

PowerBI help!

Hi All, 

I have attached the image of problem I am trying to solve, trying to draw this chart on powerBI... 

Planned calculation is 295/4= 73.75 (Blue line in the graph) Let say I am taking 295 from table X than dividing by 4, for the 4 weeks.. Thanks

PI6 Start = 295

sprint 34= 295 - 73= 221

sprint 35= 221-73= 147

sprint 36= 147-73 = 73

sprint 37= 73-73= 0

DavidGM_0-1648129840568.png

 

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

Hi @DavidGM ,

According to your description, I create a sample.

vkalyjmsft_0-1648532081003.png

In my understanding, you want to create a new column Planned and show it on the line chart, if this is the case, here's my solution.

1.In Power Query, add an index column starts from 0.

vkalyjmsft_1-1648532322991.png

2.Create a calculated column.

Planned =
VAR _P = 295 - [Index] * 295 / 4
RETURN
    IF ( _P < 0, 0, _P )

3.Sort the Week column by Index.

vkalyjmsft_2-1648532567532.png

Get the expected result.

vkalyjmsft_3-1648532602066.png

I attach my sample below for reference.

 

Best Regards,
Community Support Team _ kalyj

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

2 REPLIES 2
v-yanjiang-msft
Community Support
Community Support

Hi @DavidGM ,

According to your description, I create a sample.

vkalyjmsft_0-1648532081003.png

In my understanding, you want to create a new column Planned and show it on the line chart, if this is the case, here's my solution.

1.In Power Query, add an index column starts from 0.

vkalyjmsft_1-1648532322991.png

2.Create a calculated column.

Planned =
VAR _P = 295 - [Index] * 295 / 4
RETURN
    IF ( _P < 0, 0, _P )

3.Sort the Week column by Index.

vkalyjmsft_2-1648532567532.png

Get the expected result.

vkalyjmsft_3-1648532602066.png

I attach my sample below for reference.

 

Best Regards,
Community Support Team _ kalyj

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

lbendlin
Super User
Super User

Please provide sanitized sample data that fully covers your issue. If you paste the data into a table in your post or use one of the file services it will be easier to work with. Avoid posting screenshots of your source data if possible.

Please show the expected outcome based on the sample data you provided. Screenshots of the expected outcome are ok.

https://community.powerbi.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523

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.