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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Anonymous
Not applicable

Spacing between bars for clustered column chart that used measures only in y axis.

I have a clustered column chart visual that is showing to total awareness for each activity in the marketing channels,
and some of the awarness activities measure calcauted based on more than one measure

when I add all the measures of all activite in the y axis of the  clustered column chart visual i got the bar very close to each other as showing in the screenshot below| as i don't have x axis beacuse i used only measures.

what i want is a way to have some space between each bar or a way to have all the measures of all activity in a table with considering that some of them are a sum of other measure,  so at the end  i can have x axis in the visual.

Corbaz_0-1709849544029.png

Her are some of the measures used for this visual:

  • Final_Awareness_Email_Campaings = DISTINCTCOUNT('Automailer_All_JOBID'[TOPEN_GUID])
  • Final_Awareness_Podcast = [Awa_for_Podcasts_from_Automailer]+[Awa_for_Podcasts_from_viva]
    and here we have two measures used for this which are 
    Awa_for_Podcasts_from_Automailer =
    CALCULATE(
        DISTINCTCOUNT('Automailer_All_JOBID'[TOPEN_GUID]),
        FILTER(
            'Automailer_All_JOBID',
            CONTAINS(
                RELATEDTABLE('Automailer_Links_Mapping'),
                'Automailer_Links_Mapping'[Activity],
                "Podcast"
            )
        )
    )
    and 
    Awa_for_Podcasts_from_viva =
    SUMX(
        FILTER('Viva Engage New', 'Viva Engage New'[Activity] = "Podcast"),
        'Viva Engage New'[Total Views]
    )
  • Final_Awareness_Presentation = [Awa_for_Presentation_from_Automailer]+[Awa_For_Presentation_From_Invitees]+[Awa_for_Presentation_from_viva]
  • Final_Awareness_SiteAssets = [Awa_for_SiteAssets_from_Automailer]+[Awa_for_SiteAssets_From_viva]
  • Final_Awareness_Webinar = [Awa_for_Webinar_from_Automailer]+[Awa_for_Webinar_from_viva]
  • Final_Awareness_Website =
    CALCULATE(
        SUM('Adobe_Website_Funnel'[Unique Visitors]),
        CONTAINSSTRING('Adobe_Website_Funnel'[Link Name], "undefined")
    )



1 ACCEPTED SOLUTION
Ritaf1983
Super User
Super User

Hi @Anonymous 
You can't modify the space between the bars, because the graph doesn't have X-axis. it is jest a set of measures that you put there.
To resolve this issue you can create a measures table and use a dynamic measure to get a bar for every measure.
For example, in my data, I want to create a graph like yours with Chinese sales and total sales.
The first step is to create a table of wanted measures :

Ritaf1983_0-1709869844028.png

Then you can create a dynamic measure using switch

dynamic measure = SWITCH(SELECTEDVALUE('sales table'[sales type]), "chineese sales",[Chineese_sales],
                                        "total sales",[total_sales])
Ritaf1983_1-1709869924548.png

After you have a table and a dynamic measure you can use a graph in its natural way :

Ritaf1983_2-1709870007585.png

the pbix is attached

 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

2 REPLIES 2
Ritaf1983
Super User
Super User

Hi @Anonymous 
You can't modify the space between the bars, because the graph doesn't have X-axis. it is jest a set of measures that you put there.
To resolve this issue you can create a measures table and use a dynamic measure to get a bar for every measure.
For example, in my data, I want to create a graph like yours with Chinese sales and total sales.
The first step is to create a table of wanted measures :

Ritaf1983_0-1709869844028.png

Then you can create a dynamic measure using switch

dynamic measure = SWITCH(SELECTEDVALUE('sales table'[sales type]), "chineese sales",[Chineese_sales],
                                        "total sales",[total_sales])
Ritaf1983_1-1709869924548.png

After you have a table and a dynamic measure you can use a graph in its natural way :

Ritaf1983_2-1709870007585.png

the pbix is attached

 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
Anonymous
Not applicable

Hi @Anonymous 

 

In Power BI, the clustered column chart might not allow you to manually adjust the spacing between individual bars directly. However, you can simulate spacing by adding dummy measures with null or zero values between your actual data measures. This approach requires creating additional calculated measures that return null or a visual representation of zero and placing them between your actual measures in the chart.

 

 

 

 

 

Best Regards,

Jayleny

 

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

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.