Starting December 3, join live sessions with database experts and the Microsoft product team to learn just how easy it is to get started
Learn moreGet certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now
Hi Everyone,
I'm new to power bi and needs help from power bi community. I have been struggles for weeks to get the desire result.
I have data which I need to interpret to matrix visual to get the result for the total amount from entire previous month which the result should be shows in the following month.
For example, as you can see from below screen shots,
these are the amount for each month filtered by year. I need to get the result which total of entire previous month to display in the following month. The earliest data recorded is on February. So below are the expected result:
The end result needed as per below:
January 2021 result = 0
February 2021 result = 0 (No amount recorded for January)
March 2021 result = 74.9200 (Jan 0 + Feb 74.9200)
April 2021 result= 876.3900 (Feb 74.9200 + Mar 801.4700)
May 2021 result = 894.8100 (Feb 74.9200 + Mar 801.4700 + Apr 18.4200)
then if I filtered year 2022, the end result needed as per below:
January 2022 result = 8,585.3148 (as per total amount recorded from earliest data until 31 December 2021 at 23:59:59)
February 2022 result = 9,662.5048 (total amount from earliest recorded data until 31 January 2022 at 23:59:59)
March 2022 result = 10,236.1648 (total amount from earliest recorded data until 28 February 2022 at 23:59:59)
So instead of showing the amount of current month (as per image), the result for the all following month should be the same calculation method.
I attached herewith the data.
https://1drv.ms/u/s!AlhUeAWUWE5vbPE807wZ4P5puPU
Thank you
Hi @hafchez ,
You could create a measure to get the previous month's value then create another measure to get the cumulative value of the first measure.
You will also need to create an independent year slicer table so that the rest years' data won't be filtered when you select a year.
Best Regards,
Jay
Hi @v-jayw-msft ,
I have tried the above method but getting error of duplicate date because of the data consist of same date with multiple rows. Is there any chance this can be solved? I have attached the sample data above for your reference. Thank you in advance!
Hi experts, @amitchandak , @tamerj1 , @Jihwan_Kim. Any suggestion or solution? Thank you very much in advance.
Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.
User | Count |
---|---|
21 | |
20 | |
19 | |
13 | |
12 |
User | Count |
---|---|
42 | |
28 | |
23 | |
22 | |
22 |