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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

bar graph trend using slicer or chiclet

Hi Everyone,

 

I've been using PowerBI for some time now and like to think that I'm fairly proficient with it.  However, I'm stumped on something that seems easy to make but can't figure out how to do it.  Seeking your help.

 

I'm trying to create a bar graph showing a dept's profit for the year (jan-dec), so essentially the trend for the year.  In my example, I have 3 dept's with their profit/loss for each month.  As you can see, each dept is a column and the month's are a columns as well.  Given the way my data is setup, how can I create a graph that allows me to toggle between dept's to show 1 dept at a time.  Similar to using a slicer or chiclet.  I hope this makes sense.  Thank you all for your help.

 

data.PNGgraph.PNG

 

1 ACCEPTED SOLUTION
mwegener
Most Valuable Professional
Most Valuable Professional

Hi @Anonymous ,

 

try to unpivot your dept's columns.

Than you can filter by Attribute column. 

 

unpivot Data.png

 

If I answered your question, please mark my post as solution, this will also help others.

Please give Kudos for support.

Did I answer your question?
Please mark my post as solution, this will also help others.
Please give Kudos for support.

Marcus Wegener works as Full Stack Power BI Engineer at BI or DIE.
His mission is clear: "Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website - podcast - Power BI Tutorials


View solution in original post

3 REPLIES 3
mussaenda
Super User
Super User

Hi @Anonymous 

 

you can use power query and unpivot the columns of the values. That way you can achieve your requirement

mwegener
Most Valuable Professional
Most Valuable Professional

Hi @Anonymous ,

 

try to unpivot your dept's columns.

Than you can filter by Attribute column. 

 

unpivot Data.png

 

If I answered your question, please mark my post as solution, this will also help others.

Please give Kudos for support.

Did I answer your question?
Please mark my post as solution, this will also help others.
Please give Kudos for support.

Marcus Wegener works as Full Stack Power BI Engineer at BI or DIE.
His mission is clear: "Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website - podcast - Power BI Tutorials


Anonymous
Not applicable

@mwegener , Thank you very much for your help!  I've never used the unpivot function before.  It's exactly what I needed.  

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors