Forum Discussion
Rolling window
- 6 years ago
hi Anonymous
Try these two way as below:
1. set datatype of Cash Flow to Fixed decimal number
2. Use a dim date table and create relationship with the fact table,
Now use dim date table in the visual and measure as below
Cumalative Cash Flow = CALCULATE( sum(Output_SSIS[Cash Flow]),filter(ALLSELECTED(Date),Date[Financial Year]<=Max(Date[Financial Year])))
If you still have the problem, please share your sample pbix file for us have a test.
Regards,
Lin
Anonymous , to me power bi Cumulative seems to be correct. that sum of all previous years
// this what I see in excel
This year Cash Flow = CALCULATE( sum(Output_SSIS[Cash Flow]),filter(ALLSELECTED(Output_SSIS[Financial Year]),Output_SSIS[Financial Year]=Max(Output_SSIS[Financial Year])))
// this what I see in power bi
Cumalative Cash Flow = CALCULATE( sum(Output_SSIS[Cash Flow]),filter(ALLSELECTED(Output_SSIS[Financial Year]),Output_SSIS[Financial Year]<=Max(Output_SSIS[Financial Year])))
- Anonymous6 years agoNot applicable
Have added another screenshot in the original post which shows the difference more clearly in Power BI
- v-lili6-msft6 years ago
Community Support
hi Anonymous
Try these two way as below:
1. set datatype of Cash Flow to Fixed decimal number
2. Use a dim date table and create relationship with the fact table,
Now use dim date table in the visual and measure as below
Cumalative Cash Flow = CALCULATE( sum(Output_SSIS[Cash Flow]),filter(ALLSELECTED(Date),Date[Financial Year]<=Max(Date[Financial Year])))
If you still have the problem, please share your sample pbix file for us have a test.
Regards,
Lin
- Anonymous6 years agoNot applicable
Thanks v-lili6-msft
I have not tested your solution, but I have found the answer to my problem here:
Those two formulas gave me correct answers.
Thanks for your consideration.