How To Guess That A Cell Represents A Total (or A Subtotal)

отредактировано 00:04 Раздел: FastCube
Bonjour à tous !

I'm evaluating FastCube
and trying to guess how to recognize a total
(or subtotal) cell.

In the formula editor for a calculated measure,
I did something like the following :

var
n : integer ;

begin
Measures.PrepareDetailInfo ;
n := Measures.RecordCount ;
if ( n = 1 ) then // the cell is "probably" a total if any

end

As expected, it takes a while because of "Measures.PrepareDetailInfo" !!!
Could you please teach me a better solution ?

Thank you.

Joseph

PS. I can read Russian

Комментарии

  • отредактировано 00:04
    Hi.
    Excuse for a delay with the answer.

    I will add this property in script in next update.

    Now You can test Dimensions.Items[ADimensionIndex].Caption for string 'Total'.

    Oleg.
  • отредактировано 00:04
    написал: »
    Hi.
    Excuse for a delay with the answer.

    I will add this property in script in next update.

    Now You can test Dimensions.Items[ADimensionIndex].Caption for string 'Total'.

    Oleg.

    Thank you very much

Оставить комментарий

Многофункциональный текстовый редактор. Чтобы отредактировать стиль параграфа, нажмите TAB, чтобы перейти к меню абзаца. Там вы можете выбрать стиль. По умолчанию не выбран ни один стиль. Когда вы выберете текст, появится встроенное меню форматирования. Нажмите TAB, чтобы войти в него. Некоторые элементы, такие как многофункциональные вставки ссылок, картинок, индикаторов загрузки и сообщений об ошибок могут быть вставлены в редактор. Вы можете перемещаться по ним, используя стрелки внутри редактора и удалять с помощью клавиш delete или backspace.