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

Try your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join now

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
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.