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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
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