Timbr SQL Metric Store: Superior Metrics to Power Analytics

5 minutes reading
  • Tools like Power BI traditionally rely on measures defined with DAX.
  • DAX introduces inefficiencies when dealing with complex data models, excessively pushing down queries to the database, leading to longer refresh times and increased resource consumption
  • Timbr’s SQL measures redefine analytics by leveraging database-native functions, replacing DAX for unmatched efficiency. When combined with Timbr’s 4-tier cache, Timbr measures make a compelling use case of boosting Power BI performance.

Introduction

Measures are at the core of any analytics workflow, serving as the foundation for dashboards, reports, and insights. Traditionally, tools like Power BI rely on measures defined using DAX (Data Analysis Expressions). While DAX is powerful, it introduces inefficiencies when dealing with complex data models or large datasets, as its calculations often push down excessive queries to the database. This can lead to longer refresh times and increased resource consumption.
Timbr takes a different approach by introducing SQL measures, effectively replacing both DAX and MDX measures. DAX (Data Analysis Expressions) is a formula language commonly used in Power BI to create calculated columns and measures, while MDX (Multidimensional Expressions) is a query language for OLAP data sources. Both serve their purposes in handling measures for complex data models, but they often introduce inefficiencies, such as excessive query pushdowns and complex expressions that can slow performance. Unlike DAX and MDX, SQL measures leverage the native functions and aggregations of the connected database. By executing computations at the source, Timbr’s SQL measures eliminate inefficiencies, reduce query complexity, and deliver faster results.

Why SQL Measures Outperform DAX and MDX

Timbr’s SQL measures offer a simpler and more efficient alternative to traditional methods like DAX and MDX. While DAX and MDX require specialized languages and complex query translations, SQL measures shine in their simplicity and efficiency. By working directly with SQL, Timbr eliminates the need for additional layers of processing required by DAX and MDX. This simplification not only reduces query complexity but also accelerates performance across various analytics workflows. Let’s take a closer look:

  1. Database-Native Execution: SQL measures use the built-in functions of the database to perform calculations, ensuring optimal execution. For example, aggregations, filters, and joins are handled directly by the database engine, eliminating the need for intermediate processing.
  2. Simplified Query Pushdowns: DAX measures often translate into multiple queries that the database must process, leading to inefficiencies. SQL measures, on the other hand, consolidate these calculations into a single, optimized query, significantly improving performance.
  3. Scalability: As datasets grow larger, SQL measures scale seamlessly with the database’s capabilities. This ensures consistent performance even with complex or high-volume data.

In a recent use case, Timbr’s SQL measures delivered a 70% improvement in query execution times compared to DAX measures. By leveraging database-native functions, these measures reduced resource consumption while accelerating dashboard refresh times, as seen in the Power BI implementation described later in this blog.

Automating Mesures Generation with Ontology-Based Concepts

Timbr’s semantic layer goes beyond SQL measures by enabling the automatic generation of measures based on ontology concepts. Additionally, Timbr replaces MDX entirely, integrating seamlessly with tools like Excel to enhance usability and simplify complex multidimensional queries. Here’s how it works:

  1. Unified View of Disparate Data Sources: Timbr’s ontology model treats relationships as first-class entities, allowing data from multiple sources or tables to be unified under a single logical framework. This eliminates the need for manual joins or complex mappings.
  2. Automatic Measures Discovery: Using Timbr’s advanced algorithms, measures are automatically generated based on the defined ontology concepts. For example, if “Revenue” and “Region” are part of the ontology, Timbr can automatically suggest measures like “Revenue by Region” or “Average Revenue per Customer.”
  3. Reusability Across Models: Once created, these measures can be reused across multiple dashboards, ensuring consistency and reducing redundancy.

By automating measures creation, Timbr not only saves time but also ensures accuracy and consistency across analytics workflows. Organizations can focus on extracting insights rather than spending time defining and managing measures.

Combining SQL Measures with Timbr’s 4-Tier Cache System

Timbr’s SQL measures are further enhanced by its 4-tier cache system, which optimizes query performance and reduces costs. The cache system includes:

  1. Local Database: Data is cached in the connected database for quick access. This tier is ideal for scenarios where real-time updates are required.
  2. Data Lake: Timbr can cache data in connected data lakes, providing cost-efficient storage for larger datasets.
  3. SSD Storage: For intermediate performance and cost, data can be stored on SSDs attached to the Timbr cluster.
  4. In-Memory OLAP: The fastest tier, leveraging Timbr’s built-in in-memory database optimized for analytics queries. This option is ideal for high-priority dashboards requiring near-instant refresh times.

By combining SQL meaures with the appropriate caching tier, organizations can achieve faster refresh times while minimizing costs. For instance, in the Power BI implementation described below, leveraging in-memory caching reduced dashboard refresh times to as low as 2 seconds.

Use Case: Power BI Optimization with Timbr SQL Measures

A leading organization faced challenges in improving the performance of their Power BI dashboards, which relied heavily on DAX measures and complex relationships. The key performance indicator was reducing dashboard refresh times to under 45 seconds while maintaining cost efficiency.

Implementation Steps:

  1. Converting DAX to SQL Measures: The organization used Timbr’s automatic translation function to convert their existing DAX measures into Timbr SQL measures, streamlining the transition and enhancing efficiency. This process replaced inefficient DAX calculations with optimized database-native SQL functions.
  2. Building the Semantic Model: Timbr’s proprietary script was used to transform the Power BI .bim file into a comprehensive semantic model. This included relationships, measures, and ontology concepts.
  3. Optimizing Caching: The organization leveraged Timbr’s 4-tier cache system to optimize performance. By caching data in memory, dashboard refresh times were reduced to just 2 seconds.

Results:

The implementation delivered exceptional results:

  • 70% Faster Query Execution: SQL measures outperformed DAX by a wide margin, reducing resource consumption and improving efficiency.
  • Reduced Costs: Timbr’s caching options proved more cost-effective than Power BI’s Import mode and alternative solutions.
  • Improved User Experience: Dashboards were faster, more responsive, and better suited for real-time analytics.

SQL Measures: Built for Modern Data Analytics Challenges

Timbr’s SQL measures redefine how organizations approach analytics. By leveraging database-native SQL functions, these measures deliver faster performance, lower costs, and greater scalability compared to traditional methods like DAX. When combined with Timbr’s semantic layer and 4-tier cache system, the result is a powerful solution that simplifies measures management, unifies disparate data sources, and accelerates dashboard performance.

The Power BI use case demonstrates the transformative potential of Timbr SQL measures. By automating measures creation, optimizing queries, and leveraging advanced caching strategies, organizations can unlock new levels of efficiency and insight. As analytics continue to evolve, Timbr’s innovative approach positions it as a key enabler of modern data-driven decision-making.

Start powering your analytics with Timbr SQL measures today and experience the difference firsthand.

Start leveraging the power of SQL ontologies today with Timbr and see how it transforms your approach to data modeling and querying.

Partner programs enquiry

The information you provide will be used in accordance with the terms of our

privacy policy.

Schedule Meeting

Model a Timbr SQL Knowledge Graph in just a few minutes and learn how easy it is to explore and query your data with the semantic graph

Model a Timbr SQL Knowledge Graph in just a few minutes and learn how easy it is to explore and query your data with the semantic graph

Graph Exploration

Register to try for free

The information you provide will be used in accordance with the terms of our privacy policy.

Talk to an Expert

The information you provide will be used in accordance with the terms of our

privacy policy.

Thank You!

Our team has received your inquiry and will follow up with you shortly.

In the meantime, we invite you to watch demo and presentation videos of Timbr in our Youtube channel: