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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
lkt88888
Regular Visitor

How to show revenue, cost with different years

Hi all,

 

Right now, my power bi is showing

 

                      2020         2021

Product 1     Rev cost   Rev cost

                     XX   XX      XX  XX

Product 2     Rev cost   Rev cost

 

But I want it to show

                    Rev             Cost

                2020 2021   2020 2021

Product 1 XX    XX        XX      XX

Product 2 XX    XX        XX      XX

 

Please help. Thank you!

 

1 ACCEPTED SOLUTION
2 REPLIES 2
v-shex-msft
Community Support
Community Support

HI @lkt88888,

Did these 'Revenue' and 'Cost' are from different value fields, right?
If that is the case, I think you need to do unpivot column on the fields to convert the to attribute and values, then you can add the attribute field above the year field to show the visual graph as your requirements.

Unpivot columns (Power Query) (microsoft.com)

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.
amitchandak
Super User
Super User

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

Check out the June 2024 Power BI update to learn about new features.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.