GENERATEALL

The GENERATEALL function is similar to the GENERATE function: It returns a table formed by the Cartesian product of all the rows of the first table and the rows of the second table after being evaluated in the row context of each of the rows of the first one.

Submitted by admin on Wed, 07/10/2019 - 18:31

Creating a calendar

One of the most frequently asked questions regarding the calendar required to use time intelligence features is, is it better to create it external to Power BI? Or in the query editor? Or maybe with DAX?

In this scenario we are going to create a complete calendar in DAX, including the number and name of the month, quarter, day of the week, etc.

Submitted by admin on Sun, 07/07/2019 - 18:20

EARLIER

The EARLIER function is used on calculated columns and allows access to the value of a column (of the row being analyzed) in nested calculations. In most cases it can be said that the EARLIER function returns an access "to the current row".

Unlike the EARLIEST function, it allows you to specify the level of recursion that it refers to.

Submitted by admin on Sat, 07/06/2019 - 12:20

Adding data from one table to another with no relationship between them

In general, when we want to work with data distributed between two or more tables, we start from a data model in which the tables are related to each other by means of "relationships" that involve a key field at the ends of the tables. But it is not always necessary for these relationships to exist.

In this scenario we start from a table of countries:

Submitted by admin on Thu, 07/04/2019 - 11:39

GENERATE

The GENERATE function returns a table formed by the Cartesian product of all the rows of the first table and the rows of the second table after being evaluated in the row context of each of the rows of the first one. Or, in other words, for each of the rows in the first table, a row context is created that is applied to the second table before the join is performed.

Submitted by admin on Mon, 07/01/2019 - 16:32

ISSUBTOTAL

The ISSUBTOTAL function returns the logical value True if the corresponding row contains a subtotal for the column indicated as an argument.

Submitted by admin on Sun, 06/30/2019 - 20:11

ROLLUP

The ROLLUP function identifies a subset of the table's fields being aggregated by the SUMMARIZE function, fields for which subtotals will be generated.

Submitted by admin on Sun, 06/30/2019 - 18:35