Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
jonbox
Helper II
Helper II

How to add a bar to a graph

Hi,

 

I have the below graph with different data values. i'm happy with each column (firm, june ff, december ff, etc) but i'd like to add another column for the darker line, rather than showing it on each column. is there a way i can do this? 

 

I thought just adding the data for that column into the table but i don't think it would work...

jonbox_0-1648057953857.png

 

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

Hi, @jonbox ;

You could create another table or change the original table in power query. here I tested another table method.

1.create another table.

Table 2 = 
var _a=SUMMARIZE('Table',[Type],[ActualSpending])
var _b=SUMMARIZE('Table',"Type","Actuals","ActualSpending",MAX('Table'[Actuals]))
return UNION(_a,_b)

2.create a flag meaure.

flag = IF(MAX('Table 2'[Type])="Actuals","#12239E","#118DFF")

3.set color conditional format.

vyalanwumsft_0-1648436558998.png

The final output is shown below:

vyalanwumsft_1-1648436602432.png


Best Regards,
Community Support Team _ Yalan Wu
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

6 REPLIES 6
v-yalanwu-msft
Community Support
Community Support

Hi, @jonbox ;

You could create another table or change the original table in power query. here I tested another table method.

1.create another table.

Table 2 = 
var _a=SUMMARIZE('Table',[Type],[ActualSpending])
var _b=SUMMARIZE('Table',"Type","Actuals","ActualSpending",MAX('Table'[Actuals]))
return UNION(_a,_b)

2.create a flag meaure.

flag = IF(MAX('Table 2'[Type])="Actuals","#12239E","#118DFF")

3.set color conditional format.

vyalanwumsft_0-1648436558998.png

The final output is shown below:

vyalanwumsft_1-1648436602432.png


Best Regards,
Community Support Team _ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

PaulDBrown
Community Champion
Community Champion

What "darker line"?





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






the darker  column of the two. you have the light blue and the dark blue. i'm wanting get get the dark blue to be a bar on its own rather than replicating next to the lighter blue.

Can you show a depiction of the expected outcome and provide some sample data or PBIX file?





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






Hi,

So currently the bar graph is using two values "firm spending" and "actual spend" which are columns in two different tables.

 

Rather than actual spend showing alongside firm spending as shown in my first post, i'd like it to show as another column in the chart on its own, depicted below..

 

jonbox_1-1648070558485.png

 

 

jonbox_0-1648070521724.png

 

Thanks. That helps. See if this blog post helps:

https://community.powerbi.com/t5/Community-Blog/Creating-a-custom-or-hybrid-matrix-in-PowerBI/ba-p/1... 

 

 





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors