--- warning: DO NOT CHANGE THIS MANUALLY, THIS IS GENERATED BY https://github.com/duckdb/community-extensions repository, check README there title: dax_sql excerpt: | DuckDB Community Extensions A Power BI semantic model (.bim, TMDL or Apache Ossie YAML) as a semantic view, queried in plain SQL; its DAX measures are compiled to DuckDB SQL extension: name: dax_sql description: A Power BI semantic model (.bim, TMDL or Apache Ossie YAML) as a semantic view, queried in plain SQL; its DAX measures are compiled to DuckDB SQL version: "0.1.0" language: C++ build: cmake license: MIT excluded_platforms: "wasm_mvp;wasm_eh;wasm_threads" maintainers: - djouallah repo: github: djouallah/dax-sql-duckdb ref: 56255236402dbf2c14b58a9d645b160e8511c6fe docs: hello_world: | INSTALL dax_sql FROM community; LOAD dax_sql; CREATE SECRET onelake (TYPE azure, PROVIDER credential_chain); -- A Direct Lake model: its lakehouse is attached through OneLake's Iceberg catalog. CREATE SEMANTIC VIEW sales FROM 'abfss://@onelake.dfs.fabric.microsoft.com//Files/model.bim'; SHOW SEMANTIC METRICS IN sales; SELECT Product.Color, AGG(Orders) AS orders, AGG("Sales Amount") AS amount FROM sales WHERE Customer.Country = 'France' GROUP BY ALL ORDER BY amount DESC; extended_description: | dax_sql reads a Power BI semantic model, as a TMSL .bim, TMDL files or Apache Ossie YAML (a Fabric semantic view's Context/Semantic Views// folder), and makes it a semantic view. Queries are plain DuckDB SQL: a measure is AGG(name) or AGG("name with spaces"), and a dimension is Table.Column. The measures' DAX is compiled to DuckDB SQL at bind time by dax-sql (https://github.com/djouallah/dax-sql), embedded in the extension through QuickJS. A Direct Lake model's tables are read from its lakehouse through OneLake's Iceberg REST catalog, pinned to their snapshots until REFRESH SEMANTIC VIEW. Not built for wasm: OneLake is read through the azure extension, which has no wasm build. extension_star_count: 0 extension_star_count_pretty: 0 extension_download_count: null extension_download_count_pretty: n/a image: '/images/community_extensions/social_preview/preview_community_extension_dax_sql.png' layout: community_extension_doc --- ### Compatibility Matrix This table covers all DuckDB releases that have not reached [end-of-life](https://duckdb.org/release_calendar), including LTS releases, and shows the 2 most recent patch releases of each. Older patch releases are not listed, but the extension may be available for them as well.
| Platform | 1.5.5 | 1.5.6 | 2.0.0 | 2.0.1 | | :--- | :---: | :---: | :---: | :---: | | Linux AMD64 | ❌ | ❌ | ❌ | ✅ | | Linux ARM64 | ❌ | ❌ | ❌ | ✅ | | macOS AMD64 | ❌ | ❌ | ❌ | ❌ | | macOS ARM64 | ❌ | ❌ | ❌ | ✅ | | Windows AMD64 | ❌ | ❌ | ❌ | ✅ | | Windows ARM64 | ❌ | ❌ | ❌ | ❌ | | WebAssembly | ❌ | ❌ | ❌ | ❌ | ### Installing and Loading ```sql INSTALL {{ page.extension.name }} FROM community; LOAD {{ page.extension.name }}; ``` {% if page.docs.hello_world %} ### Example ```sql {{ page.docs.hello_world }}``` {% endif %} {% if page.docs.extended_description %} ### About {{ page.extension.name }} {{ page.docs.extended_description }} {% endif %} ### Added Functions
| function_name | function_type | description | comment | examples | |-------------------|---------------|-------------|---------|----------| | dax_sql_create | table | NULL | NULL | | | dax_sql_define | table | NULL | NULL | | | dax_sql_drop | table | NULL | NULL | | | dax_sql_facts | scalar | NULL | NULL | | | dax_sql_refresh | table | NULL | NULL | | | dax_sql_rewrite | scalar | NULL | NULL | | | dax_sql_set_facts | scalar | NULL | NULL | | | dax_sql_show | table | NULL | NULL | | | dax_sql_version | scalar | NULL | NULL | | ### Overloaded Functions
This extension does not add any function overloads. ### Added Types
This extension does not add any types. ### Added Settings
| name | description | input_type | scope | aliases | typed_value | |---------------------------|---------------------------------------------------------|------------|--------|---------|------------------| | active_grammar_extensions | The grammar extensions used by the parser. | VARCHAR[] | LOCAL | [] | [shell, dax_sql] | | temp_directory | Set the directory to which temporary files are written. | VARCHAR | GLOBAL | [] | post.db.tmp |