Coder Social home page Coder Social logo

tabular's People

Contributors

m-kovalsky avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

tabular's Issues

Creating Agg Table with M-Partition instead Legacy

Hello Sir, In this snippet below, it creates a Legacy-Partition for the AggTable by default. I was wondering if it is possible at all to create a M-Partition instead. If so, I would greatly appreciate if you could point me to some documentation to do that. Thanks in advance.

foreach(var p in Model.Tables[tableName].Partitions.ToList()) { var aggPartitionName = p.Name.Replace(tableName,aggTableName); var aggQuery = p.Query.Replace(tableName,aggTableName); var pName = Model.Tables[aggTableName].AddPartition(aggPartitionName); // Update Data Source pName.DataSource = Model.DataSources[dataSource]; // Update Query pName.Query = aggQuery; } // Remove default partition Model.Tables[aggTableName].Partitions[aggTableName].Delete(); }

ExportReportObjects.cs Error on line 155 (Connections)

While my folder path and file name are correct, I get the following error when I try to run the script:
image
It's just a simple file I created for test purposes and saved locally. Report elements and the data model are in one PBIX file.

AutoAggs: Object Reference not set to an instance

When running the script this error comes up at line 25:

grafik

When outputting p.Query it returns Null. p is correctly set to the first partition of the fact table.

The way I understand it, it tries to find the query for a partition, but it's empty? I've already setup incremental refresh on the fact table, whch is why the partitions themselves do not have it's own M query. It's in the "SourceExpression" attribute of the table object. Is this why it fails?

Updates to Script, but specific to TE3 - help with TE2 for all-in-one solution that combines Visual Object, Model, and Workspace Use detail?

Michael, first off, your visual object layer script has been amazing for my team and our business.

Over the last few months, I've made a lot of additions (additional object details pulled) and also added a process to combine each export into a single excel file with tabs.

I'm wanting to share, but all my changes have been for Tabular Editor 3 and I can't quite figure out the Tabular Editor 2 errors.

Any chance you can reach out via email at [email protected] or message in Teams at [email protected]? Similar to your current script, I think these changes are super helpful to anyone/any organization and would love to get them in your main script !

Chris

Export report object - filter values

In the Export Report Object you get the columns measures visuals and so on.
But what i don't see are the filter values.

I don't know if this issue should be at report analyzer. That's why I added it here.

No update after import

Hi,
When importing with TE2, the description field does not update.
The advanced "unsupported filters" is on.
Is there any thing to know ? (only work on api connection (not local model), needs for a specific compiler ?

Unable to run script against report

I'm facing an issue when pointing to a OneDrive path. Have you resolved your issue?

I'm getting an error at line 137: File does not exist. Must use a valid .pbix or .pbit file.

Not facing this issue when moving the file to a local folder.

Doesn't work with PPU

Is a Service Principal required for running this script?

As Power BI Admin I still get this:
Error on line 29 ( Model.Database.TOMDatabase.Server.CancelSession(sID);)
The '[email protected]' user does not have permission to perform a cancel operation.

Is there a way to create parameters/shared expression?

Hi Michael - thanks so much for your scripts. I use several of them and save me a lot of time and efforts.

Is there a way to create parameters in TE using scripts? I was able to create Shared expression but couldn't figure out how to set the kind to M and add Expression via script.

Thanks

Descriptions enhancement : add support for different code page

Your scripts for exporting/exportings descriptions are very usefull, however it uses the default Excel code page which can be an issue on non English Excel version.

It would be nice to add an origin variable to set the code page (close to other variables definitions) in ExportDescriptions.cs:
object origin = Type.Missing; // 65001 for UTF-8;
and use excelApp.Workbooks.OpenText(textFilePath, origin, 1, ... instead of excelApp.Workbooks.OpenText(textFilePath, Type.Missing, 1, ...

Exporting and importing DisplayFolder could be nice also even if it's not strictely descriptions.

Thanks

ExportReportObjets.cs: VisualObjects missing elements

It looks as if from the non-Standard VisualObjects only the "Label" makes it into the final txt file.
All other elements (starting from row 682) don't make it into the final file.

And: For the vcObjects, the extraction path is not correct. The field "FillRule" doesn't exist any more and can simply be deleted.
However, even after that fix, those objects won't make it into the txt currently.

Txt path error

Trying to use the code to export descriptions and getting this error :
I made sure to have the files in that path. Any tips on how to solve? Thanks!
image

ExportReportObjects.cs: conditional formatting, RLS, OLS, and relationships not considered?

When I view ReportObjects_UnusedObjects.txt, I see columns that are part of RLS or OLS or a relationship, as well as measures that are used for conditional formatting. Is this expected?

My model has two tables:
image

In addition to the relationship, there's an RLS role, an OLS role, and a table visual with conditional formatting (background color).

I expect to see only [Unused measure] in ReportObjects_UnusedObjects, yet I see everything but 'Table'[Column for a table visual]: ReportObjects_UnusedObjects.txt

Sample PBIX file: Sample for issue 14.zip

In case it matters, I'm connecting to the model locally. The only parameters I changed were pbiFolderName, pbiFile, addPersp (the latter set to true).

Is there something I'm doing incorrectly?

Unable to load Tabular Model (Compatibility Level 1200+)

Hello @m-kovalsky ,

While we are integrating the BPA Scan in .NET core project, we are getting the below issue. Can you please help on to fix this issue.
"Unable to load Tabular Model (Compatibility Level 1200+) from .src\model.bim. Error: The type initializer for 'Microsoft.AnalysisServices.Core.Utils' threw an exception".

BPA issue

Cannot get BPA-script to work

Hi Michael

Thanks for all the BPA work.

I cannot run the BPA-script that collects info on several model. It says the ObjectReference for TabularModelHandler is null?

TabularModelHandler

Data Dictionary without Excel and without DWH

Hi,

I have created (used your script) a script to create a data dictionary without using Excel or a live connection.

But i cant get it to work yet.
What i did i created a SQL statement based on your SQL insert script into the a DWH.
But what i did i create a statement and put that in the Partition.

I also create a table and datasource, but in this case there isnt a data source.
And i think its failing because the datasource doenst exists.

Could you help me ?

The script is in the attachtment.

Kind regards,

Ben

ExportReportObjects.cs accumulating report pages when looping through multiple .pbixs

Observing cases where the ReportObjects_Visuals.txt from using "Method 2" for multiple .pbix results in all of the pages from the first report also being associated to the second. Then all those pages also being associated to the third report. Then all those pages also being associated to the fourth and so on.

No issue with Method 1 for a single .pbix.

This is an incredibly helpful tool but may create confusion when using across multiple .pbixs.

TE version 2.16.1.

Example: Created 3 .pbixs each having one page. First .pbix shows the one page correctly, but subsequent reports scanned repeat the report + page listed previously.

Example

ArgumentNullException

I am getting an error on line 50. Could you please help me navigate through it?
image

I don't have one data source but data is pulled in using dataflows and then creating the model in PowerBI
image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.