All Tags »
DAX (RSS)
Showing page 16 of 16 (159 total posts)

If you use PowerPivot and write some DAX formula, don't miss this post on PowerPivotPro blog  if you want to get an external editor for your DAX formula, you can use Notepad++ for free  and adding the customization described in this post by Colin Banfield, you will get function autocomplete and tooltips.

When you use CALCULATE in DAX you are creating a new filter context for the calculation, based on the existing one. There are a few functions that are used to clear or preserve a column filter. These functions are:
ALL – it can be used with one or more columns from a table, or with the name of a table. It returns all the values from the ...

PowerPivot supports only one type of relationship between two tables, which is the onetomany relationship. You can define that a column in a table (the “many” side) corresponds to a lookup table through a column which is an identity column there (the “one” side). DAX provides support to follow this relationship through functions such as RELATED ...

A calculated column is a DAX expression which is evaluated when the PowerPivot workbook is updated. It is very useful, but there are cases where you want to delay calculation at query time. For example:
You want to make part of the calculation depending on the selection in the PivotTable (i.e. selecting a scenario for a simulation)
You want to ...

PowerPivot for Excel is an AddIn which uses a local version of Analysis Services (SSAS) to process data and make calculation to respond to user queries made using Excel 2010. The SSAS engine is loaded inmemory in the process of Excel. Especially with a 32 bit of Excel, there are particular considerations about the use of the memory.
When an ...

The calculation for ABC analysis can be made in PowerPivot using calculated columns. In this way each row can have an attribute with the appropriate ABC class. The ABC calculation has to be made considering a particular grouping and sort order.
For example, we wanted to define an ABC class of Products for internet sales transactions of ...

The CALCULATE function in DAX is the magic key for many calculations we can do in DAX. However, it is not pretty intuitive how it works and I spent a lot of time trying to understand how it can be used.
First of all, this is the syntax.
CALCULATE( <expression>, <filter1>, <filter2>… )
The expression that we put in the first ...

UPDATE: PowerPivot for Excel 2010 in SQL Server 2012 and Excel 2013 support the DISTINCTCOUNT aggregation in DAX. This blog post is relevant only if you use PowerPivot for Excel 2010 in SQL Server 2008 R2.
A PivotTable based on PowerPivot data doesn’t offer a native Distinct Count aggregation. To calculate it, you need to create a calculated ...

UPDATE: This blog post is still good for learning DAX principles, but a better description of manytomany patterns is available on The ManytoMany Revolution whitepaper that is available here: http://www.sqlbi.com/articles/many2many/  please download it and use the pattern described there to write faster DAX formulas!
PowerPivot doesn’t ...
... 16