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
rachaelwalker
Resolver III
Resolver III

Stacked Bar Chart to show Trend line

I have a bar chart that shows % of tasks delivered on time (very bottom visual). I need to add a trend line to give a better visualization of the trend. I have tried to use the line and stacked bar chart visual but I cannot get it to show the data in %. Any help or suggestions are appreciated. thank you.

 

rachaelwalker_0-1646779773335.png

rachaelwalker_2-1646779939104.png

 

Delivered on time formula is below

Delivered On Time = IF('Project Install Schedule'[MIN Scheduled End] < 'Project Install Schedule'[MAX Entered Time], "No", "Yes")

 

 

 

2 ACCEPTED SOLUTIONS
Whitewater100
Solution Sage
Solution Sage

Hi:

I had a little luck changing the chart type to Line & Clustered Column and using DATE in Axis. Then you get a trend line. There are perhaps more ways but this got closer to what you'd like.

 

Whitewater100_0-1646784808398.pngWhitewater100_1-1646784842383.png

 

View solution in original post

Maybe you will like moving average. Here is a 3-mnoth and it smooths the average out and is a trend lagging indicator. the link from before should have it.

Whitewater100_0-1647047438606.png

 

View solution in original post

8 REPLIES 8
Whitewater100
Solution Sage
Solution Sage

Hello: I did my best with the data available. I made two sets for percent and number of projects compeleted  and you can swop out. I did not find trend on stacked column but created average monthly measure to substitute. I hope this helps!

https://drive.google.com/file/d/1bpN50xLPNM4Ct10eX2Tk5Ewa49sIJ5D0/view?usp=sharing 

 

Whitewater100_0-1647018066005.png

 

Whitewater100
Solution Sage
Solution Sage

Hi:

I had a little luck changing the chart type to Line & Clustered Column and using DATE in Axis. Then you get a trend line. There are perhaps more ways but this got closer to what you'd like.

 

Whitewater100_0-1646784808398.pngWhitewater100_1-1646784842383.png

 

@Whitewater100 the line and cluster does not show the data values as a %. I can change it to show data as a percentage of the whole, but then its not correct for each month. I accidentally marked your response as the solution. 

Hi Rachael:

Would you happen to have any data you can share? Or perhaps tell me what formula you want to show % of total? I think if you get a measure for this it will be fine. Anyways whatever you can share, plus what an expected result would be will help me understand - I will look at it and reply.

Thanks

I will include some of the data below. I basically want it to look just like what I have but a line to emphasize a trend line. Image below to give an idea. So I imagine I will need to use the line and stacked visual but I cannot get it to show in % for that month. My formula is in the original post. It is a calculated column. for the visual below Green = "yes" and red = "no". I appreciate you taking the time to help me. This seems like an easy fix so its driving me crazy. 

 

rachaelwalker_0-1647013058476.png

 

Delivered On TimeDateProject Number
Yes9/29/2020 0:004041
Yes10/2/2020 0:004032
No10/6/2020 0:004033
Yes10/6/2020 0:004038
No10/7/2020 0:004029
No10/16/2020 0:008058
Yes10/20/2020 0:004036
No10/21/2020 0:004037
No10/29/2020 0:004054
Yes10/30/2020 0:004058
Yes11/6/2020 0:0012153
Yes11/13/2020 0:004052
Yes11/19/2020 0:004050
Yes11/20/2020 0:004053
No11/25/2020 0:004045
Yes12/2/2020 0:004083
Yes12/3/2020 0:004065
No12/4/2020 0:004035
Yes12/10/2020 0:0012187
Yes12/18/2020 0:004066
No12/21/2020 0:004048
No12/23/2020 0:008159
Yes12/23/2020 0:004085
Yes12/29/2020 0:004063
No12/31/2020 0:004126
Yes12/31/2020 0:008178
No1/5/2021 0:004076
Yes1/5/2021 0:004113
No1/7/2021 0:008196
Yes1/7/2021 0:004051
No1/8/2021 0:004069
Yes1/8/2021 0:008165
Yes1/12/2021 0:004128
Yes1/13/2021 0:004056
Yes1/14/2021 0:004137
No1/15/2021 0:004055
Yes1/15/2021 0:004102
No1/20/2021 0:004117
Yes1/20/2021 0:004145
No1/21/2021 0:008236
No1/27/2021 0:004047
Yes1/28/2021 0:008210
No1/29/2021 0:004132
Yes2/4/2021 0:004127
No2/5/2021 0:004109
Yes2/5/2021 0:008198
No2/9/2021 0:004122
No2/11/2021 0:008229
Yes2/11/2021 0:004168
Yes2/12/2021 0:004094
No2/16/2021 0:004120
No2/18/2021 0:004138
Yes2/18/2021 0:004106
No2/19/2021 0:008083
Yes2/19/2021 0:008246
No2/23/2021 0:004167
Yes2/24/2021 0:004100
Yes2/26/2021 0:008254
No3/3/2021 0:004130
Yes3/3/2021 0:004124
No3/4/2021 0:004160
Yes3/4/2021 0:004135
Yes3/5/2021 0:0012262
Yes3/9/2021 0:004060
Yes3/11/2021 0:004140
No3/12/2021 0:008243
Yes3/15/2021 0:004171
Yes3/17/2021 0:004097
No3/18/2021 0:008282
Yes3/18/2021 0:004166
Yes3/19/2021 0:004109
Yes3/23/2021 0:004139
No3/25/2021 0:004074
No3/26/2021 0:004125
Yes3/26/2021 0:008243
Yes3/30/2021 0:004187
No3/31/2021 0:004104
Yes3/31/2021 0:004179
Yes4/1/2021 0:004212
No4/2/2021 0:004110
No4/7/2021 0:008325
Yes4/7/2021 0:004210
Yes4/8/2021 0:004209
No4/9/2021 0:004143
Yes4/9/2021 0:0012463
Yes4/13/2021 0:004105
Yes4/14/2021 0:004191
No4/16/2021 0:004116
Yes4/16/2021 0:004195
Yes4/20/2021 0:004131
No4/22/2021 0:008252
No4/23/2021 0:008364
Yes4/23/2021 0:0012392
No4/26/2021 0:004204
No4/28/2021 0:004199
No4/30/2021 0:004165
No5/1/2021 0:004180
No5/5/2021 0:004068
Yes5/5/2021 0:004221
No5/6/2021 0:004237
No5/7/2021 0:004181
No5/11/2021 0:004207
No5/13/2021 0:004194
Yes5/14/2021 0:004246
No5/15/2021 0:004146
Yes5/17/2021 0:004230
No5/18/2021 0:004220
No5/20/2021 0:004219
Yes5/20/2021 0:004040
No5/21/2021 0:004222
No5/24/2021 0:004198
Yes5/26/2021 0:004253
No5/27/2021 0:004197
Yes5/28/2021 0:008486
Yes6/2/2021 0:0012351
No6/3/2021 0:004233
Yes6/4/2021 0:004201
No6/7/2021 0:008191
Yes6/9/2021 0:004214
No6/10/2021 0:004244
Yes6/11/2021 0:0012800
No6/14/2021 0:004183
No6/16/2021 0:004184
Yes6/16/2021 0:004243
No6/17/2021 0:004234
No6/18/2021 0:004189
Yes6/18/2021 0:004264
Yes6/22/2021 0:008602
No6/27/2021 0:004202
No7/1/2021 0:004241
Yes7/1/2021 0:004284
No7/2/2021 0:004086
No7/3/2021 0:004153
Yes7/7/2021 0:008629
No7/8/2021 0:008467
Yes7/8/2021 0:008564
No7/9/2021 0:004231
Yes7/9/2021 0:004320
No7/13/2021 0:004213
Yes7/13/2021 0:004312
Yes7/14/2021 0:004305
Yes7/15/2021 0:0012700
Yes7/16/2021 0:004255
Yes7/21/2021 0:0012888
Yes7/22/2021 0:004339
Yes7/27/2021 0:004306
Yes7/29/2021 0:004317
No7/30/2021 0:008557
Yes7/30/2021 0:004337
No7/31/2021 0:004157
No8/2/2021 0:004300
Yes8/3/2021 0:004086
No8/6/2021 0:008619
No8/7/2021 0:004271
Yes8/10/2021 0:004302
No8/11/2021 0:004163
Yes8/12/2021 0:004342
No8/13/2021 0:004290
Yes8/16/2021 0:004416
Yes8/17/2021 0:004157
No8/19/2021 0:004303
Yes8/19/2021 0:0012875
No8/20/2021 0:008634
Yes8/20/2021 0:008749
Yes8/25/2021 0:004245
No8/27/2021 0:004286
Yes8/27/2021 0:008692
Yes8/30/2021 0:004419
No9/1/2021 0:004386
Yes9/1/2021 0:004364
Yes9/2/2021 0:004263
No9/3/2021 0:008659
No9/8/2021 0:004333
No9/10/2021 0:004278
Yes9/10/2021 0:004401
No9/16/2021 0:004292
No9/17/2021 0:008709
Yes9/17/2021 0:004409
Yes9/20/2021 0:004476

 

Maybe you will like moving average. Here is a 3-mnoth and it smooths the average out and is a trend lagging indicator. the link from before should have it.

Whitewater100_0-1647047438606.png

 

This is exactly what I was looking for. Thank you so much Bill!

Hi Rachael:

I will check it out now. Bill

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.

Top Solution Authors