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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Andrewlu18
New Member

How to custom stack bar stack squeeze?

I have 3 columns, `Date`,`Level`, `Qty`.

I want get stack bar chart, Data is X-Axis, Qty is Yaxis, Level as different type to stack, but stack squeeze is High/Low/Med,

I want to use Low/Med/High Squeeze, how to do?

I build a Level dim-table base one this Squeeze, and build relationship with fact-table, use dim-data level column as type, but get data is wrong.

 

`Data table`

DateLevelQty
5/1Low312
5/1Med236
5/1High456
5/2Low872

 

`Level`

No.Level
1Low
2Med
3High
1 REPLY 1
TomMartens
Super User
Super User

Hey @Andrewlu18 ,

 

I assume this is what you want:
image.png
Here the Level column from the dim table is used. To get the order sorted, it's necessary to sort the Level column by the No. column: Sort one column by another column in Power BI - Power BI | Microsoft Learn

Hopefully, this provides what you are looking for.

 

Regards,

Tom



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.