AXForum  
Вернуться   AXForum > Microsoft Dynamics AX > DAX Blogs
DAX
Забыли пароль?
Зарегистрироваться Правила Справка Пользователи Сообщения за день Поиск

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 23.09.2014, 01:11   #1  
Blog bot is offline
Blog bot
Участник
 
25,477 / 846 (79) +++++++
Регистрация: 28.10.2006
goshoom: Aggregation of expressions in SSRS
Источник: http://dev.goshoom.net/en/2014/09/ag...sions-in-ssrs/
==============

Imagine you have an SSRS report with a tablix, which contains a calculated field. For example, there is a date field (from a data set) and a calculated field showing the difference between the given date and the current date:



The Diff field is calculated by the following expression:

=DateDiff("d", Fields!GivenDate.Value, Today)






Now we want to add a field showing the sum of differences. First off all, add a new row below the Details group (i.e. the row with individual dates) using Insert Row > Outside Group – Below.



The only question is how to implement the expression of Total diff. You probably know how to summarize values of a dataset field – by =SUM(Fields!SomeField.Value). But we’re not limited to fields, we can use almost any expression there. Therefore we simply put the expression calculating date difference to the SUM function:

=SUM(DateDiff("d", Fields!AccountingDate.Value, Today))






Indeed, the total difference is calculated as expected.





Источник: http://dev.goshoom.net/en/2014/09/ag...sions-in-ssrs/
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.
 

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
kamalblogs: SSRS Tip: Printing Row headers in every page – Dynamics Ax 2012 Blog bot DAX Blogs 0 23.09.2013 16:12
dax-lessons: Cheque customizations in Dynamics AX 2012 – SSRS, expressions in SSRS reports Blog bot DAX Blogs 0 24.11.2011 23:11
saveenr: Dynamics AX & SSRS Learning Roadmap: Part 4 - Adding Headers and Footers and an Introduction to Expressions Blog bot DAX Blogs 0 24.05.2010 15:05
gatesasbait: Dynamics AX 2009 SSRS and SSAS Integration Tips Blog bot DAX Blogs 3 09.07.2009 13:07

Ваши права в разделе
Вы не можете создавать новые темы
Вы не можете отвечать в темах
Вы не можете прикреплять вложения
Вы не можете редактировать свои сообщения

BB коды Вкл.
Смайлы Вкл.
[IMG] код Вкл.
HTML код Выкл.
Быстрый переход

Рейтинг@Mail.ru
Часовой пояс GMT +3, время: 00:36.
Powered by vBulletin® v3.8.5. Перевод: zCarot
Контактная информация, Реклама.