Našimi kurzy prošlo více než 10 000+ účastníků
2 392 ověřených referencí účastníků našich kurzů. Přesvědčte se sami
This can be confusing for Power BI users. When writing the SAMEPERIODLASTYEAR function (or TOTALYTD or something like this…), them sometimes (but not always) you have to add the third argument, the ALL function.
So when yes and when no?
Measures working with time intelligence functions can be created using two approaches. Either you can use the date column in the same table as calculated values, or you can work with column in a table connected with relation.
Calculated value and the date column are together in one table. This can be used for simple data models.
Then you have to use the ALL. The syntax looks like this:
Date, used as argument for SAMEPERIODLASTYEAR, is in connected date dimension.
Now you don´t need the ALL function, so the syntax can be like this:
If you have a time dimension, you don´t need ALL. If you don´t have time dimension, you need ALL.
2 392 ověřených referencí účastníků našich kurzů. Přesvědčte se sami
Pište kdykoliv. Odpovíme do 24h
© exceltown.com / 2006 - 2023 Vyrobilo studio bARTvisions s.r.o.