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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
Anonymous
Not applicable

Cluster values on X axis bar chart

I have 4 different measures calculation percentage. 

I am looking for a way to cluster the bars in pairs and add x values to each cluster like this: (0-100.000, >100.000-500.000) etc.

tvarberg_0-1613134213502.png

 

 

tvarberg_1-1613134424224.png

 

Thanks

Thomas

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous ,

 

You can try to create a separate table as follows, then reference them in the measure, and map them accordingly.

Screenshot 2021-02-16 141856.png

 

The measure is just like

 

Measure =
SWITCH (
    MAX ( 'Table'[Range] ),
    "0-100000",
        CALCULATE (
            SUM ( 'Table (2)'[Values] ),
            FILTER ( 'Table (2)', [Values] > 0 && [Values] < 100000 )
        )
)

 

Screenshot 2021-02-16 142508.png

 

Best Regards,

Stephen Tao

 

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

3 REPLIES 3
Anonymous
Not applicable

Hi @Anonymous ,

 

You can try to create a separate table as follows, then reference them in the measure, and map them accordingly.

Screenshot 2021-02-16 141856.png

 

The measure is just like

 

Measure =
SWITCH (
    MAX ( 'Table'[Range] ),
    "0-100000",
        CALCULATE (
            SUM ( 'Table (2)'[Values] ),
            FILTER ( 'Table (2)', [Values] > 0 && [Values] < 100000 )
        )
)

 

Screenshot 2021-02-16 142508.png

 

Best Regards,

Stephen Tao

 

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

mahoneypat
Microsoft Employee
Microsoft Employee

Can you just create two new measures that are the sums of the measure pairs and use those in your visual?

Pat

 





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


Anonymous
Not applicable

Hi @mahoneypat 
No, unfortunately that can't do it.
The bars are showing in percentage. 
The first two should be placed on X-asis (0-100.000) etc.
Best
Thomas

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.