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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
MaliniBaktha
Helper II
Helper II

three bar chart from same column

Hi, 

 

I have a column with numbers, I have to create three bar charts (minmum, average and median) from the values using that column. But when I try to do that the bars gets attached to each other.  The bars are attached to each other leaving big space in the left and right side, is there a way to give space between the bars . I did try creating (average, median and minimum as a separate measures as well but nothing is working. Any suggestions in this ?

MaliniBaktha_0-1692417106553.png

 

2 ACCEPTED SOLUTIONS
Ritaf1983
Super User
Super User

Hi @MaliniBaktha 

This is happening because you don't have an X-axis.
You just put 3 different measures.

To get the graph you can generate a table of your measures, please follow these steps.

1. Create blank table with a column with your measures :

Ritaf1983_0-1692422908051.png

2. Regular measures of what you need

average = AVERAGE('Table'[Value])
median = MEDIAN('Table'[Value])
average = AVERAGE('Table'[Value])
Ritaf1983_1-1692423034659.png

3. Create dynamic measure in the new table

bar measure = if (SELECTEDVALUE('measures table'[Measure])= "Minimum" ,[minimum],
if (SELECTEDVALUE('measures table'[Measure])="Median",[median],[average]))
Ritaf1983_2-1692423117015.png

4. Put column "measures column" from the new table on x axis and "bar measure" on Y:

Ritaf1983_3-1692423241747.png
 
 

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

 

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

View solution in original post

You are cool this wroked fine. I did the same before but made it wrongly 

View solution in original post

3 REPLIES 3
Ritaf1983
Super User
Super User

Hi @MaliniBaktha 

This is happening because you don't have an X-axis.
You just put 3 different measures.

To get the graph you can generate a table of your measures, please follow these steps.

1. Create blank table with a column with your measures :

Ritaf1983_0-1692422908051.png

2. Regular measures of what you need

average = AVERAGE('Table'[Value])
median = MEDIAN('Table'[Value])
average = AVERAGE('Table'[Value])
Ritaf1983_1-1692423034659.png

3. Create dynamic measure in the new table

bar measure = if (SELECTEDVALUE('measures table'[Measure])= "Minimum" ,[minimum],
if (SELECTEDVALUE('measures table'[Measure])="Median",[median],[average]))
Ritaf1983_2-1692423117015.png

4. Put column "measures column" from the new table on x axis and "bar measure" on Y:

Ritaf1983_3-1692423241747.png
 
 

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

 

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

You are cool this wroked fine. I did the same before but made it wrongly 

Happy to help 😊

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.