List of Calculated Fields formula

KimC2504

Board Regular
Joined
Jul 17, 2012
Messages
141
Hi All,

I have a long list of calculated fields and I would like to check the formula's. Is there a quick way to get a list of all the calculated field names and corresponding formula's on an excel worksheet? Currently I need to view each one individually and copy the formula which is a quite tedious. I am using Excel 2013

TIA
Kim
 
Sorry, I am having trouble to show the full code, because it is xml, some parts are just not shown, very annoying...
 
Last edited:
Upvote 0

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
<html xmlns:eek:="urn:schemas-microsoft-com:eek:ffice:eek:ffice"
xmlns="http://www.w3.org/TR/REC-html40">

<head>
****** http-equiv=Content-Type content="text/x-ms-odc; charset=utf-8">
****** name=ProgId content=ODC.Table>
****** name=SourceType content=OLEDB>
<title>.PowerPivot Get All DAX statements</title>
<xml id=docprops><o:DocumentProperties
xmlns:eek:="urn:schemas-microsoft-com:eek:ffice:eek:ffice"
xmlns="http://www.w3.org/TR/REC-html40">
<o:Name>.PowerPivot Get All DAX Statements</o:Name>
</o:DocumentProperties>
</xml><xml id=msodc><odc:OfficeDataConnection
xmlns:eek:dc="urn:schemas-microsoft-com:eek:ffice:eek:dc"
xmlns="http://www.w3.org/TR/REC-html40">
<odc:Connection odc:Type="OLEDB">
<odc:ConnectionString>Provider=MSOLAP.5;Persist Security Info=True;Initial -

Catalog=Microsoft_SQLServer_AnalysisServices;Data Source=$Embedded$;MDX -

Compatibility=1;Safety Options=2;ConnectTo=11.0;MDX Missing Member Mode=Error;Optimize -

Response=3;Cell Error Mode=TextValue</odc:ConnectionString>
<odc:CommandType>Default</odc:CommandType>
<odc:CommandText>

SELECT DISTINCT
, OBJECT_TYPE, OBJECT, EXPRESSION
FROM $system.discover_calc_dependency
WHERE OBJECT_TYPE = 'MEASURE'
OR OBJECT_TYPE = 'CALC_COLUMN'
ORDER BY 1

**</odc:CommandText>
</odc:Connection>
</odc:OfficeDataConnection>
</xml>
<style>
<!--
.ODCDataSource
{
behavior: url(dataconn.htc);
- }
-->
</style>

</head>

</body>

</html
 
Upvote 0
Tada, found the right button to switch off html..... I had to remove some spaces and the two ** which showed up in the query window of the properties of the connection. I think the ones at the beginning are also superfluous....

Well, just give it a try...
 
Upvote 0
You could also try downloading DAX Studio (DAX Studio - Home). It can run these kinds of queries plus a whole lot of other useful stuff.

You can also do it with macros. I have one that automatically grabs everything I want from the open model and adds it to a master document with all of my models.
 
Upvote 0
I am sorry prez02, I appreciate all your help but I ended up downloading DAX studio as recommended by Norah. It worked wonderfully well. :)
 
Upvote 0

Forum statistics

Threads
1,215,467
Messages
6,124,984
Members
449,201
Latest member
Lunzwe73

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