

Partner - Creator
2017-08-01
05:53 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
If Statement without condition
Hi Experts,
I am going through an expression.I find it difficult to understand the below expression.
aggr(if(Sum(Amount),Sum(Amount)),FiscalMonth)
Can anyone explain about this?
Thanks in advance
802 Views
4 Replies

MVP
2017-08-01
05:57 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
it is :
if the sum of amount is 100 it will display 100 based on fiscal month
aggr will be used over the dimension to caluclate


Partner - Specialist III
2017-08-01
06:04 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Dineshraj,
Aggr is used for group by purpose.
Thanks,
Arvind Patil
749 Views


Specialist III
2017-08-01
06:12 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
In above straight table, AGGR expression will create a logical table with columns - FiscalMonth & Sum(Amount).
It will display these two columns if respective FiscalMonth has Sum(Amount) > 0.
Input:
Date | FiscalMonth | Amount |
01/01/2017 | 9 | 1,000 |
01/10/2017 | 9 | 2,000 |
04/04/2017 | 1 | 5,000 |
04/05/2017 | 1 | 4,000 |
06/04/2017 | 3 | 5,000 |
06/05/2017 | 3 | -5,000 |
Output:
FiscalMonth | aggr(if(Sum(Amount),Sum(Amount)),FiscalMonth) |
1 | 9000 |
9 | 3000 |
Regards!
Rahul Pawar


Partner - Creator
2017-08-01
06:14 AM
Author
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Chanty,
Can you explain with an Example
749 Views
