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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
krdavies
New Member

Stacked bar chart to show 5-year revenue by category

Hello, I am trying to replicate the following visual which was created from a Pivot table:

 

krdavies_0-1669219525326.png

However in BI I cannot find a way to show this as an annual trend with the year along the x-axis and the amount of revenue on the y-axis. Is the issue with the way I have formatted the underlying data? A screenshot of the table is below:

 

krdavies_0-1669219768198.png

In my Pivot table, Columns-=Funding source, Values=Sum of (each year) and Rows=Values, with Faculty set as a filter. 

 

I appreciate any help and ideas. I don't know how to do macros/coding so I'm hoping this can be accomplished through tools in the UI. 

1 ACCEPTED SOLUTION
dcrosseto
Resolver II
Resolver II

Hi @krdavies ,

 

I would say that yes, the issue is with the way your table is formated. If you cannot change it, I think you would've to create one measure for every year/column, summing it separetly.

 

Or you could also use PowerQuery to pivot your table before creating the reports, that'll help everything that regards this columns, such as filters, measures and etc. Your life will be easier.

 

Regards,

Douglas.

View solution in original post

2 REPLIES 2
krdavies
New Member

Thanks, @dcrosseto . I tried a PowerQuery to unpivot my revenue columns and I am now able to produce the chart! I appreciate how fast you were able to help!

dcrosseto
Resolver II
Resolver II

Hi @krdavies ,

 

I would say that yes, the issue is with the way your table is formated. If you cannot change it, I think you would've to create one measure for every year/column, summing it separetly.

 

Or you could also use PowerQuery to pivot your table before creating the reports, that'll help everything that regards this columns, such as filters, measures and etc. Your life will be easier.

 

Regards,

Douglas.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

November Carousel

Fabric Community Update - November 2024

Find out what's new and trending in the Fabric Community.

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.