Giter Club home page Giter Club logo

Comments (5)

buremba avatar buremba commented on May 30, 2024

Given that MDX and DAX are widely adopted in the MS ecosystem, we can just throw a parser them and convert them to Segmentation queries if possible. olap4j doesn't seem to be maintained but it seems to be the only alternative, I will check olap4j and see if I can get it working.

The XMLA server will implement the following endpoints:
https://docs.microsoft.com/en-us/analysis-services/xmla/xml-elements-methods-discover?view=asallproducts-allversions
https://docs.microsoft.com/en-us/analysis-services/xmla/xml-elements-methods-execute?view=asallproducts-allversions

Samples:
https://github.com/pentaho/mondrian/blob/d94651d21bc6f4047d297c0ebe91b0eda43b2bbd/mondrian/src/main/java/mondrian/tui/XmlaSupport.java
https://github.com/pentaho/mondrian/blob/d94651d21bc6f4047d297c0ebe91b0eda43b2bbd/mondrian/src/main/java/mondrian/xmla/impl/DefaultXmlaServlet.java
https://github.com/pentaho/mondrian/tree/d94651d21bc6f4047d297c0ebe91b0eda43b2bbd/mondrian/src/main/java/mondrian/xmla/impl

API:
https://docs.microsoft.com/en-us/analysis-services/xmla/xml-for-analysis-xmla-reference?view=power-bi-premium-current&preserve-view=true
DAX Parser: https://github.com/microsoft/powerquery-parser
MDX for Java: https://github.com/olap4j/olap4j and https://github.com/olap4j/olap4j-xmlaserver
MDX Grammer: https://github.com/antlr/grammars-v4/blob/master/mdx/mdx.g4

from metriql.

buremba avatar buremba commented on May 30, 2024

Once we build the XMLA server, we will parse MDX queries and generate Segmentation Query and generate the SQL for the underlying database. I'm dropping a SO question that can help us understand the language:

https://stackoverflow.com/questions/56788153/convert-mdx-to-sql-statement

Edit: Later I figured out that it's not that easy to build an MDX parser as it's a full language similar to SQL. See the current approach below.

from metriql.

buremba avatar buremba commented on May 30, 2024

Here is an alternative method: trinodb/trino#6886
If we use TOM in addition to ODBC, it should also work: https://www.powerbidevcamp.net/articles/programming-datasets-with-TOM/

Also see: openlookeng/hetu-odbc-driver#1
https://dax.tips/2020/07/30/automatically-create-measures-in-power-bi-using-vs-code/

https://github.com/olap4j/olap4j and https://github.com/olap4j/olap4j-server

from metriql.

buremba avatar buremba commented on May 30, 2024

Please see the relevant discussion if you're interested in being an early adopter! 🙏 #22

from metriql.

Hakim-BDA avatar Hakim-BDA commented on May 30, 2024

Any news on how we can best use metricql with PBI?

from metriql.

Related Issues (20)

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.