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
In this article, you should learn which filter function to choose in which situation. Take this as a quick overview, certainly not complete.
If we don’t use any filter, the entry will look like this:
The shortest possible notation of the filter in measure looks like this. No special function is used, only the itself.
Filter without filter = CALCULATE ( SUM ( my_table[Price] ), my_table[Color] = “Red” )
The result seems to be confusing, because:
that is, there are only Alfa Romeos in the Alfa Romeo group, but there are always reds in the individual colors – even if it is a row with a blue car.
You would have the same result with this (it would just be unnecessarily long, don´t do it):
Syntax is like this:
Even better, you can use KEEPFILTERS. It will work the same as FILTER, but with a shorter syntax and better performance for larger tables: The word “KEEP” is derived from the fact that the filter remains above this column – it is not removed.
In both cases, the result will look like what you usually need. So the number:
The VALUES function can be used like this. The point is that it will return the context normal behaviour, i.e. the filters of visual will be taken into account. Usually this can (and should) be replaced with KEEPFILTER or FILTER.
If you don´t want to remove the visual context (and, usually, u don´t), use KEEPFILTERS.
Otherwise (probably only in exceptional cases), use the way without a special filtering function.
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.