Differences between DATEADD and PARALLELPERIOD in DAX

  Рет қаралды 6,886

SQLBI

SQLBI

5 ай бұрын

The different results of DATEADD and PARALLELPERIOD in DAX may impact many other time intelligence functions that are syntax sugar of these two.
Article and download: sql.bi/827982?aff=yt
How to learn DAX: www.sqlbi.com/guides/dax/?aff=yt
The definitive guide to DAX: www.sqlbi.com/books/the-defin...

Пікірлер: 17
@ynwtint
@ynwtint 8 күн бұрын
Thank you Russo Sir. That is such a thorough explanation to make DAX more enjoyable.
@anilkapkoti296
@anilkapkoti296 5 ай бұрын
Learning from you is a continual source of joy and fulfillment.❤
@fernandolorenzoizquierdo3093
@fernandolorenzoizquierdo3093 5 ай бұрын
Saludos, gracias por dedicaros horas de su tiempo de preparación continúa, gracias por en pocos minutos hacernos entender cada elemento y funcionalidades de las expresiones DAX del cuál son faro y guía mundial. Mucha salud para ambos y respectivas familias.
@salosteysv
@salosteysv 5 ай бұрын
Thank you, this is interesting! The elegant formula with SelectedColum at 21:30 attracted particular attention. Wow 👍
@mwaltercpa
@mwaltercpa 5 ай бұрын
Interesting to see how the blank within the syntax sugar impacts the total in PREVIOUSYEAR. Thank you!
@fanlovexcel
@fanlovexcel 5 ай бұрын
Thank you for sharing that so complete detail of time intelligence functions😊
@denissipchenko2455
@denissipchenko2455 5 ай бұрын
Thank you, @Marco - great content! Question: do you have some advice, if companies use Periods instead of Months and they don't match (for example, 4-4-5 Accounting Calendar)? As far as I understand, all this TI beauty is not available in this case...
@SQLBI
@SQLBI 5 ай бұрын
Use a custom calendar. Try Bravo for Power BI that generates the date table and the time intelligence calculation automatically: bravo.bi
@denissipchenko2455
@denissipchenko2455 5 ай бұрын
@@SQLBI Bravo! 🙂👍
@Tom-kp2lv
@Tom-kp2lv Ай бұрын
The demos usually have a table with a date column. But I'm trying to show i.e. sales by region, with a date slicer that allows to user to select any start and end date, and for the table to show current year and previous year. How do you do that?
@Tom-kp2lv
@Tom-kp2lv Ай бұрын
And the selected dates may span different years, so I don't think sameperiodlastyear works in this scenario, does it?
@SQLBI
@SQLBI Ай бұрын
If you want to use the time intelligence functions, you should create a Date table if you don't have one. This is one click away by using tools like Bravo (which is free): bravo.bi Also use this content as a reference for your time intelligence calculations: www.daxpatterns.com/time-patterns/
@galymzhankenesbekov7242
@galymzhankenesbekov7242 5 ай бұрын
Hello, how to turn on DAX query (after the model pane)? Thanks. Also, if terms of performance, which one is better to use dateadd('Calendar'[date], -12, MONTH) or sameperiodlastyear?
@SQLBI
@SQLBI 5 ай бұрын
The DAX Query View is still a preview feature and must be enabled in Options / Preview. SAMEPERIODLASTYEAR internally uses DATEADD, they are the same.
@galymzhankenesbekov7242
@galymzhankenesbekov7242 5 ай бұрын
@@SQLBIthank you sir 🙂
@giancajaracadillo
@giancajaracadillo 5 ай бұрын
sorry but i not found the Article, thanks
@SQLBI
@SQLBI 5 ай бұрын
The article is available now
Using tuple syntax in DAX expressions
32:24
SQLBI
Рет қаралды 8 М.
How Many Balloons Does It Take To Fly?
00:18
MrBeast
Рет қаралды 159 МЛН
Now THIS is entertainment! 🤣
00:59
America's Got Talent
Рет қаралды 38 МЛН
Русалка
01:00
История одного вокалиста
Рет қаралды 7 МЛН
Alex hid in the closet #shorts
00:14
Mihdens
Рет қаралды 8 МЛН
Using join functions in DAX
40:30
SQLBI
Рет қаралды 10 М.
DAX Optimizer overview - Unplugged #56
49:34
SQLBI
Рет қаралды 8 М.
Differences between GROUPBY and SUMMARIZE
28:30
SQLBI
Рет қаралды 34 М.
Row Context in DAX
20:42
SQLBI
Рет қаралды 95 М.
Power BI Interview Questions   - Overview
19:13
Pragmatic Works
Рет қаралды 63 М.
🚨 YOU'RE VISUALIZING YOUR DATA WRONG. And Here's Why...
17:11
Adam Finer - Learn BI Online
Рет қаралды 27 М.
Solving errors in CALCULATE filter arguments
30:55
SQLBI
Рет қаралды 27 М.
Understanding context transition
18:25
SQLBI
Рет қаралды 65 М.
Optimizing time intelligence in DirectQuery
18:09
SQLBI
Рет қаралды 5 М.
Отдых для геймера? 😮‍💨 Hiper Engine B50
1:00
Вэйми
Рет қаралды 1,3 МЛН
Телефон-електрошокер
0:43
RICARDO 2.0
Рет қаралды 1,3 МЛН
Top 50 Amazon Prime Day 2024 Deals 🤑 (Updated Hourly!!)
12:37
The Deal Guy
Рет қаралды 1,4 МЛН
Easy Art with AR Drawing App - Step by step for Beginners
0:27
Melli Art School
Рет қаралды 15 МЛН
Look, this is the 97th generation of the phone?
0:13
Edcers
Рет қаралды 4,2 МЛН
КРУТОЙ ТЕЛЕФОН
0:16
KINO KAIF
Рет қаралды 6 МЛН