Using measures to create columns in pivot table without helper columns in model

GarC

New Member
Joined
Nov 9, 2011
Messages
15
In my current role I am using Excel 2010 with PowerPivot

One of the reports I produce is a tabular pivot table with one row for every row in the source table. Instead of dragging multiple columns into the row labels area, thus slowing an already slow environment, I am using measures to show the values, as long as only one value can appear within the current filter context (which is unfiltered).

Therefore, I have only one column in the row label area and multiple measures in the values field which are appearing as columns on the pivot table.

This is the measure I am using.

Code:
MeasureName:=IF(
        COUNTROWS(VALUES(Table[Column]))=1,
        VALUES(Table[Column])
       )

While this works quite well, my issues is that I have created lots of new columns in my fact table which I know is inefficient. I tried integrating RELATED functions but haven't managed to create one which works.

I am looking for a measure which performs the same role as this one but does not require a helped (RELATED) column in my fact table.

Any assistance would be appreciated.
 
Last edited:

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.

Forum statistics

Threads
1,214,919
Messages
6,122,260
Members
449,075
Latest member
staticfluids

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top