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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

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

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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