Hi,
This may seem like a strange question - but what I would like to do is produce as automatically as possible a list of the names of all fields defined in Powerpivot (both in the Powerpivot backend green screen, and anything user defined in the Excel frotn end) that are DAX formulae, and what the formula for that field is. For the fields that are just values i.e. straight from a database , they can either be listed or ignored, it doesn't matter.
I've seen Excel utilities that do that sort of thing for regular Excel formulae, typically to help audit spreadsheets. But I've not seen how to do that for Powerpivot files - or even to list all the fields enclosed.
I'd ideally be after a table like:
[TABLE="width: 500"]
<TBODY>[TR]
[TD]Field name
[/TD]
[TD]Is Formula?
[/TD]
[TD]DAX formula
[/TD]
[/TR]
[TR]
[TD]CustomerID
[/TD]
[TD]No
[/TD]
[TD]n/a
[/TD]
[/TR]
[TR]
[TD]TotalSales
[/TD]
[TD]Yes
[/TD]
[TD]=SUM([Sales])
[/TD]
[/TR]
</TBODY>[/TABLE]
Does that seem possible with either a tool or by developing a macro? I have experience of standard Excel macros but no experience with how much/if any macro functions can interact wtih Powerpivot tables.
Thanks!
This may seem like a strange question - but what I would like to do is produce as automatically as possible a list of the names of all fields defined in Powerpivot (both in the Powerpivot backend green screen, and anything user defined in the Excel frotn end) that are DAX formulae, and what the formula for that field is. For the fields that are just values i.e. straight from a database , they can either be listed or ignored, it doesn't matter.
I've seen Excel utilities that do that sort of thing for regular Excel formulae, typically to help audit spreadsheets. But I've not seen how to do that for Powerpivot files - or even to list all the fields enclosed.
I'd ideally be after a table like:
[TABLE="width: 500"]
<TBODY>[TR]
[TD]Field name
[/TD]
[TD]Is Formula?
[/TD]
[TD]DAX formula
[/TD]
[/TR]
[TR]
[TD]CustomerID
[/TD]
[TD]No
[/TD]
[TD]n/a
[/TD]
[/TR]
[TR]
[TD]TotalSales
[/TD]
[TD]Yes
[/TD]
[TD]=SUM([Sales])
[/TD]
[/TR]
</TBODY>[/TABLE]
Does that seem possible with either a tool or by developing a macro? I have experience of standard Excel macros but no experience with how much/if any macro functions can interact wtih Powerpivot tables.
Thanks!