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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
mau_habert
Helper I
Helper I

Dynamic measures and blank spaces in column chart

Hi,

 

I created one visual with many measures into the Clustered Column Chart. All measures can be dinamically selected by the user to be shown in the chart at the same time, as in the following picture (where the 9 measures are shown to each X company name):

 

1.png

 

So far ok. The problem is: when I start to deselect some measures that I dont want to see in the chart, Power BI "reserves" one blank space to the deselected measure, and the chart turns into an unpleasant fashion, with lots of white spaces between X values, as in the following picture (where I selected just one measure):

2.JPG

 

Here is the Dax formula that I'm using to each "dynamic measure" (they are all the same logic):

 

 

 

medida dlr = 
Var LogicTest = 
COUNTROWS(DISTINCT(
    FILTER(ALLSELECTED(Variaveis_Receita_Tabela_2),
        Variaveis_Receita_Tabela_2[Valor 2] = "DLR"
    )
)) = 1
Return
IF (
    LogicTest,
    sum(econ_ind_sustentabilidade_tab_2[dlr]),
    BLANK()
)

 

 

 

Do you know if there is some way to get rid from those white spaces when the measures are deselected?

 

Thanks

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @mau_habert ,

Please select the related column chart and navigate to Format pane. Find X axis options to adjust the value of Inner padding just as below screenshot.

inner padding.JPG

Best Regards

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @mau_habert ,

Please select the related column chart and navigate to Format pane. Find X axis options to adjust the value of Inner padding just as below screenshot.

inner padding.JPG

Best Regards

PhilipTreacy
Super User
Super User

Hi @mau_habert 

No I don't believe you can change this spacing between columns dynamically like that, it's the way the visual works.

Regards

Phil



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


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.