Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
vkozlov
Partner - Creator
Partner - Creator

Сводная таблица. Пределы измерения

Всем привет

Вопрос: возможно ли ограничить пределы измерения в сводной таблице, как это позволяет функционал в диаграммах?

При выборе сводной таблицы вкладка специальная вкладка пропадает,

2017-02-04_00-23-07.png

но ранее видел демонстрацию сводной таблицы, в которой было ограничение по некоторому измерению. Задачка там была: отображались топ 5 контрагентов по продажам внутри каждого региона (измерения - регион и контрагент, выражение - сумма продаж)

1 Solution

Accepted Solutions
vinieme12
Champion III
Champion III

There are two ways to achieve this

1)using a calculated dimension

2)restrict values in set analysis

Example: to show top 5 companies by sales

1)to restrict dimension values, add calculated dimension as below

If (Aggr (Rank (Sum (sales)),Company)<=5,Company)  // and check suppress when value is null on this dimension

2)to restrict in set analysis

Sum ( {<  Company = {"=Company = Rank (Sum(Sales))<=5"}

>}Sales)

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.

View solution in original post

6 Replies
vinieme12
Champion III
Champion III

There are two ways to achieve this

1)using a calculated dimension

2)restrict values in set analysis

Example: to show top 5 companies by sales

1)to restrict dimension values, add calculated dimension as below

If (Aggr (Rank (Sum (sales)),Company)<=5,Company)  // and check suppress when value is null on this dimension

2)to restrict in set analysis

Sum ( {<  Company = {"=Company = Rank (Sum(Sales))<=5"}

>}Sales)

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.
vkozlov
Partner - Creator
Partner - Creator
Author

Thanks

1) - its all ok

2) - doesn't work. maybe i made a mistake.

Can you fix it in file?

vinieme12
Champion III
Champion III

I'm on mobile right now

Also, with the second method there is a possibility that we may need a keyfield

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.
vinieme12
Champion III
Champion III

Or may be try

Sum ( {<  Company = {"=Rank (Sum(Sales))<=5"}

>}Sales)

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.
vkozlov
Partner - Creator
Partner - Creator
Author

It's ok!

Thanks bro

vinieme12
Champion III
Champion III

Just checked your app buddy

you need to use double quotes

Sum({<Organization={"= Rank(Sum(Sales),4,1)<=3"}>}Sales)

cheers

V

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.