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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
NickOnTheNet
Frequent Visitor

Data modelling challenge?

Hi all!

I want to produce a report with a chart/charts  comparing revenue by year and month.

The data I have is in the form as below. (It also contains columns for Cost of Goods, Qty Sold and Qty Purchased in the same format as revenue which I have excluded here for brevity.)

Each product has 1 row per year, Rev01-Rev12 are January to December.

 

YearProductRevTotalRev01Rev02Rev03Rev04Rev05Rev06Rev07Rev08Rev09Rev10Rev11Rev12
2020AB15300,00750,00250,00500,00500,00 300,00200,00100,00400,00600,00700,001000,00

 

I would have prefered having Year, Month, Product, Revenue as the columns, that would have made it easier to my mind  (I'm no expert!)

 

Could someone suggest either:

1. A method to use the data in the current form

or

2. If it does need to be changed to Year, Month, Product, Revenue as the columns, how I should best go about that?

 

A pointer to a resource where I could learn would also be much appreciated.

 

Thanks for your time and consideration.

 

Regards.. Nick

1 ACCEPTED SOLUTION
FrankAT
Community Champion
Community Champion

Hi @NickOnTheNet 

first you have to unpivot the data columns Rev01 - Rev12 in Power Query.

Please provide some more sample data.

 

With kind regards from the town where the legend of the 'Pied Piper of Hamelin' is at home
FrankAT (Proud to be a Datanaut)

 

View solution in original post

2 REPLIES 2
FrankAT
Community Champion
Community Champion

Hi @NickOnTheNet 

first you have to unpivot the data columns Rev01 - Rev12 in Power Query.

Please provide some more sample data.

 

With kind regards from the town where the legend of the 'Pied Piper of Hamelin' is at home
FrankAT (Proud to be a Datanaut)

 

Hi @FrankAT ,

Thanks for your input!

 

I just looked through YouTube and found a number of videos covering the subject, I just needed to know what to look for.

This one covered it perfectly: https://www.youtube.com/watch?v=T8Ekr_sLP-0

I think I've got it from here.

Every day's a school day 😀

 

Kind regards ... Nick

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

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.

Top Solution Authors