LOOKUPVALUE Function in Power BI with Example and Data

The LOOKUPVALUE function in DAX is used to return a single value from a column based on specified conditions. This function is particularly useful for finding values in a related table without creating a formal relationship between tables. Syntax dax Example Data Assume we have two tables: ProductInfo and SalesData. ProductInfo Table ProductID Category 1 …

LOOKUPVALUE Function in Power BI with Example and Data Read More »

TREATAS function in power bi DAX with example and data

The TREATAS function in Power BI is used to apply the result of a table expression as the filter to columns from an unrelated table. It effectively changes the context in which data is evaluated, enabling cross-table calculations without explicit relationships. Here’s an example to illustrate the TREATAS function with example data: Example Scenario Suppose …

TREATAS function in power bi DAX with example and data Read More »

ALL and ALLExcept functions explained in Power Bi DAX

In DAX (Data Analysis Expressions), which is used in Power BI, Excel Power Pivot, and SQL Server Analysis Services, ALL and ALLExcept are functions used for manipulating the context of calculations, particularly in measures and calculated columns. These functions are primarily used to remove or modify filters in a DAX expression. Let’s delve into each …

ALL and ALLExcept functions explained in Power Bi DAX Read More »

Datesinperiod and DateBetween Function – DAX Power BI

In DAX (Data Analysis Expressions) for Power BI, the DATESINPERIOD and DATESBETWEEN functions are used to create dynamic date ranges for time-based calculations. Here’s a detailed look at each function and how they can be used. DATESINPERIOD The DATESINPERIOD function returns a table containing a contiguous set of dates, shifting backwards or forwards based on …

Datesinperiod and DateBetween Function – DAX Power BI Read More »

Dateadd Function DAX Power BI with Examples and Visualization

The DATEADD function in DAX (Data Analysis Expressions) is used to shift a set of dates by a specified interval. This function is particularly useful for creating measures that compare data across different time periods, such as month-over-month or year-over-year comparisons. Syntax DAX Common Use Cases Example 1: Previous Month Sales To calculate sales for …

Dateadd Function DAX Power BI with Examples and Visualization Read More »