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! Learn more

Reply
sajjadkhan25
Helper I
Helper I

Need help in p&l report where columnwise values should be shown in row wise

Hi Team,@amitchandak,@valtteriN

 

Greetings for the day,

 

I have all cogs,revenue values in column and with respect to that I need to calculate GM.

 

But the view of report should be in row wise,

  • Which can be easily done by unpivot but client is not ready to accept that so I need your help to how to get data from columns and put in row wise and even calculate GM dynamically. please a request help me on this. Thank you hope i get response soon.
1 ACCEPTED SOLUTION

Hi @sajjadkhan25 ,

 

vchenwuzmsft_0-1644818354573.png

Is this above you want ?

You can use unpivot in power bi query. Select date column then unpivot other column.

vchenwuzmsft_1-1644818688663.png

And the result as below.

vchenwuzmsft_2-1644818735432.png

Then in matrix table, add [NATURES] to rows will get the result.

 

Or show on rows, in the format of matrix table, search show on rows as following:

vchenwuzmsft_3-1644819414291.png

 

If i misunderstood you, please share some sample data and expect result.

Best Regards

Community Support Team _ chenwu zhu

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

View solution in original post

4 REPLIES 4
amitchandak
Super User
Super User

@sajjadkhan25 , 1. Show on row in matrix

 

There is a video from Curbal, very recently, how to deal with financial statement, check that out

 

this take advantage of few features or excel and power bi

https://www.youtube.com/watch?v=IISYzTaIyu4

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Hi @amitchandak sir,

actaully the solution what i want is, in the form of 

NATURES ACTUAL/BUDGET
Revenue 70
COGS 50
Standard Allocation 10
GM 10
GM% 0.33%


but the way i have data is in form of,

Date COGS REVENUE STD ALLOC
1/8/2020
Client is not okay with unpivot has it will increase number of rows so please help me how shall i give the desired output.

Thanks,
Sajjad

Hi @amitchandak sir,

actaully the solution what i want is, in the form of 

NATURES ACTUAL or BUDGET
Revenue 70
COGS 50
Standard Allocation 10
GM 10
GM% 0.33%


but the way i have data is in form of,

Date COGS REVENUE STD ALLOC
01-08-2020 50 70 10

Client is not okay with unpivot has it will increase number of rows so please help me how shall i give the desired output.

Thanks,
Sajjad

Hi @sajjadkhan25 ,

 

vchenwuzmsft_0-1644818354573.png

Is this above you want ?

You can use unpivot in power bi query. Select date column then unpivot other column.

vchenwuzmsft_1-1644818688663.png

And the result as below.

vchenwuzmsft_2-1644818735432.png

Then in matrix table, add [NATURES] to rows will get the result.

 

Or show on rows, in the format of matrix table, search show on rows as following:

vchenwuzmsft_3-1644819414291.png

 

If i misunderstood you, please share some sample data and expect result.

Best Regards

Community Support Team _ chenwu zhu

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

Helpful resources

Announcements
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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