cancel
Showing results for 
Search instead for 
Did you mean: 
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
yingyinr
Community Support
Community Support

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

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

View solution in original post

2 REPLIES 2
yingyinr
Community Support
Community Support

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

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

View solution in original post

PhilipTreacy
Super User III
Super User III

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
PBI_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

MBAS on Demand

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Get Ready for Power BI Dev Camp

Microsoft named a Leader in The Forrester Wave

Microsoft received the highest score of any vendor in both the strategy and current offering categories.

Top Solution Authors