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

Data Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more

Reply
GilesWalker
Skilled Sharer
Skilled Sharer

Help with weight break list

Hi everyone,

 

I have a column graph which contains gross mass on the Y-axis and months on the X-axis. What I am trying to do is have each bar show through colouring splitting how many tonnes are within different weight brackets. These are the different weight brackets:

 

Gross mass weight break
<=14
<=15
<=16
<=17
<=18
<=19
<=20
<=21
<=22
<=23
<=24
<=25
<=26
<=27
<=28
<=29
<=30

 

Normally I would just use an if function however there are 17 different weight brackets. Is there a more efficient way to do this within Power BI?

 

Thanks,

1 ACCEPTED SOLUTION
itchyeyeballs
Impactful Individual
Impactful Individual
3 REPLIES 3
ALeef
Resolver II
Resolver II

Are your weights in tonnes now?  IE, 13.52, 18.01 etc..., you might be able to use RoundDown since all of your buckets are a single tonne wide.  If you want to break it up by more than a single tonne, like 13-16, 17-20 etc... you could find an equation using MOD to determine remainder of a division problem.

 

You'd probably need to create a measure filterable by month, using a count of each bucket, then drag the month into Axis of a clustered bar chart.

 

EDIT:  You could also use a stacked bar, I suppose, though I think the clustered might give you more readable results.  

itchyeyeballs
Impactful Individual
Impactful Individual

Thanks @itchyeyeballs I will check out the page, it seems to be what I am needing.

Helpful resources

Announcements
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

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.