Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi
I'm trying to create a cumulative aggregation between dates.
I have an order table with ORDER_NUMBER, ORDERED_DATE, INVOICE_DATE, INCOME
The end result needs to be a Bar Chart that presents the income of the orders that the Quarter of the invoice greater from the ordered date
see the example below
ORDER_NUMBER | ORDERED_DATE | INVOICE_DATE | INCOME |
11111 | 02/01/2018 | 02/10/2018 | 100 |
22222 | 02/05/2018 | 20/05/2018 | 300 |
33333 | 02/06/2018 | 03/08/2018 | 400 |
YearQuarter | INCOME |
2018-Q1 | 100 |
2018-Q2 | 500 |
2018-Q3 | 100 |
2018-Q4 | 0 |
Hi,
Please find my solution by join your data to a calendar table as shown below
and then create a measure expression as below
Hope this helps
ZZ
Hi,
Thanks, but the original table contains more than 80 columns, and I'm trying to avoid using IF statements.
Is there a way to do that with Aggr and RangeSum with Set Analysis?