I have a requirement to open excel workbooks in a web environment, rendered using a third part excel emulator (Aspose cells). This works fine until I hit workbooks which use cube formulas (CUBEMEMBER, CUBEVALUE etc), The Aspose product (and the same is true for every other third party excel rendering engine) does not support cube formulas. So, as a workaround, Aspose lets me implement a custom excel formula engine and intercept calls to cube formulas during processing. I can then attempt to recreate the corresponding MDX which Excel would have generated based on the cube formula name and parameters, and then manually execute the same queries using the dot net framework.
My question is, can anyone help with a method for trapping the mdx generated by Excel when it processes a cube formula? I know with pivot tables pointing to OLAP cubes, using VBA it is possible to capture the mdx generated by switching measures and dimensions. Is there an equivalent thing with cube formulas in Excel? Or is my only option to sniff activity on the cube when my workbook is processed using Excel?
Thanks in advance (hopefully).
Related
I have created a report in SSRS that is several tables. I can export the report to Excel easily enough but the users want to have the ability to input their own numbers in a line below the tables. This line (y) would be followed with another summary line(y+z, or x-y=z, whatever). Yes, they can open the report insert extra lines, add formulas and formatting... but since this report will be run monthly and there are 11 tables in this report it would be nice if there is a Power Automate solution to add lines, formulas and formats or some other solution. Feel free to post potential solutions or teaching resources that may allow me to piece together a solution. Thank you.
I haven't tried anything yet. The only solution I can do at the moment is create a Excel template where I paste the exported spreadsheet and it gets 'lookedup' by a second tab with the proper/end formatted spreadsheet. Would like to modernize the solution(and learn)....although learning VBA is not solution I am looking for....
Is it possible to add a mathematical formula (not an Excel equation) of OMML type into an Excel sheet via office.js? I know you can add them manually by using "Insert" / "Equation" ("Equation" just below "Symbol"), which results in an OMML formula (an <m:oMath> element in the Excel sheet XML source).
Thanks Stefan,
Unfortunately, Office JS Excel API currently doesn't support OMML type. Therefore, I would suggest that you could submit the request and upvote this request at uservoice. https://officespdev.uservoice.com/forums/224641-feature-requests-and-feedback?category_id=163563
I made a VBA function which turns my raw data into a table format since I want to use a pivottable for charts. The problem is that my file need to run on excel online and VBA is not running in a cloud environment.
Is there a way to do this with functions/power query/...
Thanks in advance
Took a while but i managed. It is in fact Excel online compatible Each formula is displayed above the corresponding column. I added some data to make sure it could handle extra data.
=IF(F8<>"",ROWS($G$7:G7),NA#)
=AGGREGATE(15,6,$G$8:$G$32,ROWS($G$7:G7))
=IF(ISNUMBER(H8),IF(ISTEXT(INDEX($B$6:$C$32,H8,1)),INDEX($B$6:$C$32,H8,2),I7),"")
=IF(ISNUMBER(H8),IF(ISTEXT(INDEX($C$7:$D$32,H8,1)),INDEX($C$7:$D$32,H8,2),J7),"")
=IF(ISNUMBER(H8),INDEX(E$8:E$32,$H8),"")
=IF(ISNUMBER(H8),INDEX(F$8:F$32,$H8),"")
I am working with Excel and we are using an Excel Addin to perform some of the calculations that we may need. The add-in has various formulae. What I am trying to do is write a VBA macro that will identify any formulae from the add-in being used in the sheet and paste them as values. Is there any way the macro can identify which formulae are linked to the add-in and which of those are plain excel formulae?
It is not ideal especially if your add-ins have many functions. But basically you can create a table with 2 columns, AddinName, FunctionName. And then you can loops through cells check if a cell has formula using the Range.HasFormula. And then check if any of the functions you have in the table you created is in that cell.
I have tried the various different methods that Excel offers to work with external data.
I have inherited a system in work that involves copy and pasting data from one SSRS report into a pretty complex Excel workbook. I want to automate this system, but for the time being I still have to work with the Excel file.
This Excel file needs to be updated daily - I want to schedule the SSRS report using Windows File Sharing; have it run every day and have the Excel workbook look at the report each time the spreadsheet is opened, updating (adding data to) various tables and cells with the values in the report.
I'm finding this process really unstable. It will work for some reports, but not others. Any pivot charts based on the connection will lose their data and formatting if the sheets cannot link to each other. On opening the main, destination excel file, I get errors about links not being updated, etc. Browsing for the file and reconnecting it works, but this defeats the object.
Could the be something integral to these set up working every time that I might be missing, or does Excel have a feature that better suits what I'm trying to do?
Many thanks for your help!
I'm using SQL Server 2005, Excel 2013 and the reports and datasheet are stored in a shared folder
I think you are heading down a dead-end. You will never have enough control over the rendered output from SSRS and any solution will be fragile.
I assume the SSRS data source is SQL or some other source that Excel can read. I would take the Dataset code from the SSRS report and implement it as Data tables in Excel, e.g. Data ribbon / Get External Data.
In the simplest implementation, each query just populates an Excel Table. You can set the connection definitions to auto-refresh on open.
For more complex requirements you can build an Analysis Model in Excel using the Power Pivot Add-In (included (but not enabled) with Excel 2013). This lets you relate datasets to each other and add calculations etc. The gotcha here is that you cant auto-refresh without SharePoint.