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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register 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
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

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.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

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