Tabular Editor (TE) Script to Delete Measures

wsnyder

Board Regular
Joined
Sep 23, 2018
Messages
224
Office Version
  1. 365
Platform
  1. Windows
Hi all,

I imported a Data Model from Power Pivot into Power BI. I see many aggregation measures (Sum of, Average of, Max of) in Power BI that I do not see in Power Pivot.
1 of 2 things:
The measures exist in Power Pivot, but I cannot see them in Power Pivot
The measures are automatically created when I import the Data Model into Power BI
At any rate, I do not need them
I was trying to create a script in TE2 (I do not have access to TE3) to delete these "phantom" measures.

I did find much documentation on how to delete measures in the TE documentation

Thanks,
-w
 

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
I have many articles on TE, including sample scripts Tabular Editor Archives

you Should be able to just select the measures and click delete, or modify one of my scripts that cycles over all measures.

these measures you refer to are implicit measures created by Power Pivot when you add a column to the values section of a pivot table. They are not visible in the fields list, but you can see them in the power pivot window.
 
Upvote 0
Hi all,

I imported a Data Model from Power Pivot into Power BI. I see many aggregation measures (Sum of, Average of, Max of) in Power BI that I do not see in Power Pivot.
1 of 2 things:
The measures exist in Power Pivot, but I cannot see them in Power Pivot
The measures are automatically created when I import the Data Model into Power BI
At any rate, I do not need them
I was trying to create a script in TE2 (I do not have access to TE3) to delete these "phantom" measures.

I did find much documentation on how to delete measures in the TE documentation

Thanks,
-w
I've seen this before, and then remembered what this probably is. When a Pivot Table is built from a Data Model, and aggregations done without a measure are automatically generated, but hidden. I don't remember if you can even see them in Power Pivot.
The extra measures you see are probably them. They are called Intrinsic Measures (ones created by dragging fields into a pivot table), while those that are created within Power Pivot (DAX) are Explicit Measures.
Found this while trying to make sure I wasn't making a fool of myself!
 
Upvote 0

Forum statistics

Threads
1,223,398
Messages
6,171,879
Members
452,429
Latest member
simransonu08

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