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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
ChainsawMan
Frequent Visitor

Need a customed bar chart

Hi All,

 

I need a bar chart like a multi row card. Can I achieve this effect?

ss001.png

Thanks in advance!

1 ACCEPTED SOLUTION

Hi , @ChainsawMan 

Thanks for your quick response!You want to place the x-axis on top of the bar chart.

I'm sorry, but I've been searching for a long time and haven't found a bar graph visual that puts the Y axis on top of the X axis.

For your need , you can try to use the Matrix as a workaround.

This is my test data:

vyueyunzhmsft_0-1680772972745.png

Now we can put this in the Matrix:

vyueyunzhmsft_1-1680772992014.png

Then we can give the "Values" a "Conditional formatting-Data bars".

vyueyunzhmsft_2-1680773017621.png

Then we can get the visual like this:

vyueyunzhmsft_3-1680773054577.png

Thank you for your time and sharing, and thank you for your support and understanding of PowerBI! 

 

Best Regards,

Aniya Zhang

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

5 REPLIES 5
Ritaf1983
Super User
Super User

Hi @ChainsawMan .
By using conditional formatting in a table and grouping with a text box, you can create a chart with a "filling" effect similar to yours.
Attached is a picture of the result.

Ritaf1983_1-1680750623179.png

The file I used to follow my steps can be downloaded from this link:
Link to the PBIX 

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

Hi Ritaf1983,

 

I want to place the x-axis on top of the bar chart, can I do it?

v-yueyunzh-msft
Community Support
Community Support

Hi , @ChainsawMan

Based on your sample screenshot and description provided, I think you want to achieve a bar chart with the total row displayed above, right?

 

If so, you may try my method to achieve the similiar output as yours in the Power BI:

This is my test data table:

vyueyunzhmsft_0-1680746818618.png

 

You can first create a calculated table like this:

Table with total column =
var _total=SUMX(ALL('Table'),'Table'[Value])
var _row=ROW("Year","Total","Value",_total)
return
UNION('Table',_row)

 

 

Then you can try to create a "Clustered bar chart" and place the fields within the calculated table like this:

vyueyunzhmsft_1-1680746836138.png

 

 

Thank you for your time and sharing, and thank you for your support and understanding of PowerBI! 

 

Best Regards,

Aniya Zhang

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

Hi StarLight Aniya,

 

I want to place the x-axis on top of the bar chart, can I do it? Currently the x-axis is on the left side of bar.

 

Hi , @ChainsawMan 

Thanks for your quick response!You want to place the x-axis on top of the bar chart.

I'm sorry, but I've been searching for a long time and haven't found a bar graph visual that puts the Y axis on top of the X axis.

For your need , you can try to use the Matrix as a workaround.

This is my test data:

vyueyunzhmsft_0-1680772972745.png

Now we can put this in the Matrix:

vyueyunzhmsft_1-1680772992014.png

Then we can give the "Values" a "Conditional formatting-Data bars".

vyueyunzhmsft_2-1680773017621.png

Then we can get the visual like this:

vyueyunzhmsft_3-1680773054577.png

Thank you for your time and sharing, and thank you for your support and understanding of PowerBI! 

 

Best Regards,

Aniya Zhang

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

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.