Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello together,
I Need your help again
It is the MONTH JUNE.
Month | Month | Month |
---|---|---|
1 | 5 | 9 |
2 | 6 | 10 |
3 | 7 | 11 |
4 | 8 | 12 |
table:
Nature | Amount | Month |
---|---|---|
ACTUAL | 3 | Juni |
FORECAST | 4 | Juli |
ACTUAL | 5 | Jan |
FORECAST | 7 | August |
For the first formula I Need the sum of the ACTUAL figures from the JAN to JUN and
the second formula is the figures of FORECAST from the JULI to DEZ.
1. Formula
sum(Amount) how get the Sum from JAN to current month JUN into the formula
2 Formula
sum(Amount), how get the SUM from JUL to DEC into the formula.
Thanks
Provide sample data please...
What sample Data you Need?
It seems this would work.
Actuals: sum ( {$<Nature={'ACTUAL'}>} Amount)
Forecast: sum ( {$<Nature={'FORECAST'}>} Amount)
but These formulas Shows me the whole amounts, but how can Combine the time Feature inside.
Actuals Show me the Amount (Actual) from Jan-Jun
Forecasts Show me the Amount (Forecast) from Jul-Dec.
Ok . I think you are asking for Jan-Jun numbers for actuals and Jul-Dec numbers for forecast. Because the small data set you provided only has actuals for the jan-jun number and only forecast numbers for the jul-dec numbers the following would work. If your actual data set is different then you should post a representative data set.
If you just want to know the syntax to be more explicit with months you can try this. Add as many months in the list as you need.
Actuals: sum ( {$<Nature={'ACTUAL'}, Month={'Jan','Juni'}>} Amount)
Forecast: sum ( {$<Nature={'FORECAST'},Month={'Juli','August'}>} Amount)
Thank you for the formulas
But how I get the current Date into the Formular
Actuals: sum({$<Nature={'ACTUAL'}, Month={'Jan', 'Juni'} Amount)
How I get here, that 'Jan' is always the first month and
'Juni' Shows the selected month. And I Need then the 'Jan', 'Feb', 'Mar', 'April', 'Mai', 'Juni'.
Forecast: sum({$<Nature={'FORECAST'}, Month={'Juli', 'August'}>} Amount)
Juli Shows the currentMonth+1 and August always the December.
I hope you understand what I mean.
Thanks
In this example, Month is a numeric field in the data model from 1 - 12 depending which month. Current month is Septermber which is Month=9.
If you have a Month number field in your data model you can use this:
Forecast: sum( {$<Month = {'> $(=num(month(today())))' }>} Sales)
Actuals: sum( {$<Month = {'<= $(=num(month(today())))' }>} Sales)