• Skip to main content
  • Skip to header right navigation
  • Skip to site footer

My Online Training Hub

Learn Dashboards, Excel, Power BI, Power Query, Power Pivot

  • Courses
  • Pricing
    • Free Courses
    • Power BI Course
    • Excel Power Query Course
    • Power Pivot and DAX Course
    • Excel Dashboard Course
    • Excel PivotTable Course – Quick Start
    • Advanced Excel Formulas Course
    • Excel Expert Advanced Excel Training
    • Excel Tables Course
    • Excel, Word, Outlook
    • Financial Modelling Course
    • Excel PivotTable Course
    • Excel for Customer Service Professionals
    • Excel for Operations Management Course
    • Excel for Decision Making Under Uncertainty Course
    • Excel for Finance Course
    • Excel Analysis ToolPak Course
    • Multi-User Pricing
  • Resources
    • Free Downloads
    • Excel Functions Explained
    • Excel Formulas
    • Excel Add-ins
    • IF Function
      • Excel IF Statement Explained
      • Excel IF AND OR Functions
      • IF Formula Builder
    • Time & Dates in Excel
      • Excel Date & Time
      • Calculating Time in Excel
      • Excel Time Calculation Tricks
      • Excel Date and Time Formatting
    • Excel Keyboard Shortcuts
    • Excel Custom Number Format Guide
    • Pivot Tables Guide
    • VLOOKUP Guide
    • ALT Codes
    • Excel VBA & Macros
    • Excel User Forms
    • VBA String Functions
  • Members
    • Login
  • Blog
  • Excel Webinars
  • Excel Forum
    • Register as Forum Member

Delete automatically created Measures|Power Pivot|Excel Forum|My Online Training Hub

You are here: Home / Delete automatically created Measures|Power Pivot|Excel Forum|My Online Training Hub
Avatar
sp_LogInOut Log In sp_Registration Register
sp_Search Search
Advanced Search|Last Search Results
Search
Forum Scope




Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
sp_Search Search
sp_RankInfo
Lost password?
sp_CrumbsHome HomeExcel ForumPower PivotDelete automatically created Measur…
sp_PrintTopic sp_TopicIcon
Delete automatically created Measures
Avatar
Matthias
Member
Members
Level 0
Forum Posts: 48
Member Since:
December 13, 2017
sp_UserOfflineSmall Offline
1
August 18, 2018 - 4:42 am
sp_Permalink sp_Print

Hi, it is easy to create a calculated measure and also to delete it if you do not need it anymore.

And when you use a an existing column in a powerpivot there is also automatically a measure created.

Example:

Sum of ColumnName

:=SUM('TableName'[ColumnName])

But when the column is taken out of the pivot this automatically created measure is not deleted. So if I list all measures also the not used automatically created measures get still listed, even though they are not used anymore.

I do this listing especially for files with many measures to keep an overview and also as a safety measure for an easier reconstruction in case pp gets unchangeable. In order not to bloat the list it would be good if these not used automatically created measures could be eliminated.

sp_AnswersTopicSeeAnswer See Answer
Avatar
Mynda Treacy
Admin
Level 10
Forum Posts: 4513
Member Since:
July 16, 2010
sp_UserOfflineSmall Offline
2
August 18, 2018 - 2:30 pm
sp_Permalink sp_Print

Hi Matthias,

What version of Excel do you have? I don't get this behaviour in Office 365.

Mynda

Avatar
Matthias
Member
Members
Level 0
Forum Posts: 48
Member Since:
December 13, 2017
sp_UserOfflineSmall Offline
3
August 19, 2018 - 3:16 am
sp_Permalink sp_Print

Hi Mynda,

I am non 2013. And the measures are listed by PP Utilities (List measures): https://www.sqlbi.com/tools/po.....utilities/

Thanks,
Matthias

Avatar
Mynda Treacy
Admin
Level 10
Forum Posts: 4513
Member Since:
July 16, 2010
sp_UserOfflineSmall Offline
4
August 19, 2018 - 9:06 pm
sp_Permalink sp_Print

So when you say the measure is listed after being removed from the PivotTable, do you mean it is still listed in the PivotTable field list, or do you mean the PP Utility is still listing it in the static list it creates in the workbook?

Avatar
Matthias
Member
Members
Level 0
Forum Posts: 48
Member Since:
December 13, 2017
sp_UserOfflineSmall Offline
5
August 20, 2018 - 2:32 am
sp_Permalink sp_Print

PP Utility is still listing them in the list it creates in the workbook.

Avatar
Mynda Treacy
Admin
Level 10
Forum Posts: 4513
Member Since:
July 16, 2010
sp_UserOfflineSmall Offline
6
August 20, 2018 - 8:52 am
sp_Permalink sp_Print

This sounds like a PP Utility issue, not a Power Query issue. You need to go back to the provider of PP Utility with your request as there is nothing I can do about how PP Utility has been set up, sorry.

Mynda

Avatar
Matthias
Member
Members
Level 0
Forum Posts: 48
Member Since:
December 13, 2017
sp_UserOfflineSmall Offline
7
August 20, 2018 - 11:55 am
sp_Permalink sp_Print

The VBA works on the current file status, no storing, no reference to previous lists, nada => no chance of forgetting to delete old records on the VBA side.

The VBA is "simply" reading record sets from ActiveWorkbook.Model.

sQuery = "SELECT DISTINCT [MEASUREGROUP_NAME] as [TABLE], [MEASURE_NAME] as [MEASURE] , " & _
"TRIM( ':=' + [EXPRESSION] ) as [DAX Expression] , [DESCRIPTION] " & _
"from $SYSTEM.MDSCHEMA_MEASURES WHERE MEASURE_NAME <> '__XL_Count of Models' " & _
"AND EXPRESSION > '' ORDER BY [MEASUREGROUP_NAME] + [MEASURE_NAME] ASC"

So it is certainly something with the storing of the Measure related info in one of the many power pivot (xml?) files themselves.

Avatar
Mynda Treacy
Admin
Level 10
Forum Posts: 4513
Member Since:
July 16, 2010
sp_UserOfflineSmall Offline
8
August 20, 2018 - 12:03 pm
sp_Permalink sp_Print

Most likely, Matthias, but I'd say it's by design because it's not affecting how Excel runs. It's only apparent to you because you're using the PP Utility. As this is an add-in that isn't provided by Microsoft you have to go back to the developer of PP Utility and ask them to somehow ignore the unused implicit measures. I can't help you, sorry.

Avatar
Matthias
Member
Members
Level 0
Forum Posts: 48
Member Since:
December 13, 2017
sp_UserOfflineSmall Offline
9
August 21, 2018 - 9:51 am
sp_Permalink sp_Print

Thanks Mynda, the VBA does exactly what it is suposed to do - it reads the stored information about calculated measures and automatic measures the same way. The only difference is that the calculated measures can be easily deleted, thus the question if there is any way to eliminate also the automatic measures. If you don't know a secret path to where they can be deleted, then that's it - can't be helped. Thanks anyway!

Avatar
Mynda Treacy
Admin
Level 10
Forum Posts: 4513
Member Since:
July 16, 2010
sp_UserOfflineSmall Offline
10
August 21, 2018 - 2:01 pm
sp_Permalink sp_Print

That's what I'm saying...I don't know a secret path. I presume it's by design that you can't easily delete them. I imagine you'd have to unzip the .xlsx file and find where the list of measures is stored. Warning: do this at your own risk! 🙂

Avatar
Arthur P

New Member
Members
Level 0
Forum Posts: 1
Member Since:
July 2, 2019
sp_UserOfflineSmall Offline
11
July 2, 2019 - 8:20 pm
sp_Permalink sp_Print

Mynda Treacy, there's not secret path nor is it a matter of design.

How to delete implicit measures in Excel 2010 with PowerPivot.

(This is translated from Spanish version.)

[1] Click on tab File in PowerPivot.

[2] Click on Show Advanced Mode.

[3] Then it appears Advanced tab and click it.

[4] Activate Show implicit Measures.

The inactives implicit measures are gray shaded, the actives one are in intense black.

Always appear explicit measures in intense black.

Right click on the name and select Delete. Follow the instructions in the dialog box.

 

I hope it is useful.

Arthur

sp_AnswersTopicAnswer
Answers Post
sp_Feed
Go to top
Forum Timezone: Australia/Brisbane
Most Users Ever Online: 245
Currently Online: ash seth, Cassie Bernier
Guest(s) 11
Currently Browsing this Page:
1 Guest(s)
Top Posters:
SunnyKow: 1432
Anders Sehlstedt: 873
Purfleet: 414
Frans Visser: 346
David_Ng: 306
lea cohen: 222
Jessica Stewart: 215
A.Maurizio: 202
Aye Mu: 201
jaryszek: 183
Newest Members:
Abisola Ogundele
MARTYN STERRY
Rahim Lakhani
Ngoc Qui Nguyen
Clement Mansfield
Rose .
Bindu Menon
Baruch Zemer
Purple RainbowBenefactor
MOTH Junkie
Forum Stats:
Groups: 3
Forums: 24
Topics: 6349
Posts: 27772

 

Member Stats:
Guest Posters: 49
Members: 32317
Moderators: 3
Admins: 4
Administrators: Mynda Treacy, Philip Treacy, Catalin Bombea, FT
Moderators: MOTH Support, Velouria, Riny van Eekelen
© Simple:Press —sp_Information

Sidebar

Blog Categories

  • Excel
  • Excel Charts
  • Excel Dashboard
  • Excel Formulas
  • Excel PivotTables
  • Excel Shortcuts
  • Excel VBA
  • General Tips
  • Online Training
  • Outlook
  • Power Apps
  • Power Automate
  • Power BI
  • Power Pivot
  • Power Query
microsoft mvp logo
trustpilot excellent rating
Secured by Sucuri Badge
MyOnlineTrainingHub on YouTube Mynda Treacy on Linked In Mynda Treacy on Instagram Mynda Treacy on Twitter Mynda Treacy on Pinterest MyOnlineTrainingHub on Facebook
 

Company

  • About My Online Training Hub
  • Disclosure Statement
  • Frequently Asked Questions
  • Guarantee
  • Privacy Policy
  • Terms & Conditions
  • Testimonials
  • Become an Affiliate

Support

  • Contact
  • Forum
  • Helpdesk - For Technical Issues

Copyright © 2023 · My Online Training Hub · All Rights Reserved. Microsoft and the Microsoft Office logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries. Product names, logos, brands, and other trademarks featured or referred to within this website are the property of their respective trademark holders.