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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
Anonymous
Not applicable

Row or Column for performance and usability

Hello,

 

I have a report already built for which I am trying to look into performance improvement. I have a simple star schema and my fact table is originall in row storage. 

 

MonthMarketCustomerDepartmentCenterMeasureValue
M01DZCustASSGGHSales100
M01DZCustASSGGHReturns200
M01DZCustASSGGHVolumes150
M01DZCustASSGGHAmounts50
M01DZCustASSGGHPrice30

 

I have pivoted the columns to have all measures in columns instead of the above. What is better in terms of performance and usability? I find it counterproductive to calculate measures in such format 

Sales = CALCULATE(SUM(TABLE[Value]), TABLE[Measure] = "Sales") 

 

MonthMarketCustomerDepartmentCenterSalesReturnsVolumesAmountsPrice
M01DZCustASSGGH1002001505030

 

Instead in this case I can do

Sales = Sum(TABLE[Value])

 

Could you please advise what is better and why? Initially my dataset is 5M rows and expected to grow and doing the pivot reduces is to 250K rows but of course with the extra columns.

3 REPLIES 3
parry2k
Super User
Super User

@Anonymous not sure what you mean? The option I talked about is keeping DAX simpler, not more complex. 



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

parry2k
Super User
Super User

@Anonymous as a best practice you always want to keep your data unpivoted and there are many reasons:

 

- you can filter on any of the attributes (measure in your case)

- you need only one measure and use the attribute column on column well of the matrix visual, or can be used on legends in other visuals.

- ability for drill through on attribute

- custom tooltip pages will be easy to build

 

There are may more reasons but the above list is a  good starting point.



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Anonymous
Not applicable

but doesnt this limit the ability to create calculated columns and makes DAX more complex if I am using more than one of the measures in these calculatations. 

For example instead of doing SUM(TABLE[Sales]) I will need to do CALCULATE(Sum(TABLE[Value], TABLE[Measure] = "Sales")

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.