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

View all the Fabric Data Days sessions on demand. View schedule

Reply
mhomol
Helper I
Helper I

Lay out a single row as a table

I have a table of period data, with columns of numerical data.  I also 2 more DAX calculated columns for each of these columns, which represent the same field value from a different period row and the difference between the 2.

 

So my period data looks something like this:

PeriodProfitLast Period Profit %DiffLossLast Loss %Diff
Period X2500023000200001000(1000)

 

I have a report that will slice down to a particular period and want a table display that would look like this:

ValueCurrentLastDiff
Profit25000230002000
Loss01000(1000)

 

Is this possible? If so, how do I accomplish?

3 REPLIES 3
amitchandak
Super User
Super User

@mhomol , I think you need to check this approch

 

https://kohera.be/power-bi/how-to-unpivot-twice/

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

@amitchandak , this is exactly what we need.  Unfortunately, I am getting the following when trying to unpivot though:

Screen Shot 2021-06-10 at 8.11.09 AM.png

 

 

Seems strange that this would be unsupported in SQL or in Dataverse (which is my source).

Is there any way I can get the data to a place where I can successfully unpivot?

@amitchandak I have a support ticket opened with Microsoft concerning the error above, but this does have me questioning a few things that I'm hoping you can help with. 

 

Is there not a way to do something like an Unpivot, if I've already created a bunch of calculated fields using DAX that are all working fine prior to the Unpivot? 

Does this mean that I should have done as much of my calculations as possible in Transform Data as Power query m statements instead?  It's very frustrating to do all these DAX calculations only to feel like I will have to redo them on the "Unpivoted source" now.

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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
Top Kudoed Authors