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

July 2021 Update 768x460.png

Check it out!

Click here to read more about the July 2021 Updates

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Urdu Hindi D365 Bootcamp 768x460.png

Urdu Hindi D365 Bootcamp

Dont miss our very own April Dunnam’s The Developer Guide to the Galaxy! Find out what the Power Platform has to offer for the traditional developer.

Top Solution Authors
Top Kudoed Authors