Forum Discussion
Divide previous row by next row
You can create a calculated column.
Regards,
Harsh Nathani
Did I answer your question? Mark my post as a solution! Appreciate with a Kudos!! (Click the Thumbs Up Button)
Hi All,
In continutation of the above calculation: I have another query which refers to the same. I need to derive a different kind of solution that needs to be worked upon:
E.g. below: I want to know whether this solution is achieveable through powerbi
| Date | Keywords | Keyword Volume | Search Volume | Avg per month | Total records per month | Actual Search Volume | Week number |
| 03-05-2018 | ABCD | 53 | 16600000 | 52.5483871 | 31 | 537345.00 | 18 |
| 03-05-2019 | ABCD | 54 | 16600000 | 54 | 31 | 5375234.00 | 18 |
| 03-05-2020 | ABCD | 91 | 16600000 | 90.64516129 | 31 | 537580.07 | 18 |
What I need to achive is:
| Date | Keywords | Keyword Volume | Search Volume | Avg per month | Total records per month | Actual Search Volume | Week number |
| 03-05-2018 | ABCD | 53 | 16600000 | 52.5483871 | 31 | 313096.09 | 18 |
| 03-05-2019 | ABCD | 54 | 16600000 | 54 | 31 | 319003.56 | 18 |
| 03-05-2020 | ABCD | 91 | 16600000 | 90.64516129 | 31 | 537580.07 | 18 |
The above table is derived from the below calculation: I need to consider max date (which would be every date for every Keyword
SO based on the Max Actual Search Volume: The Search volume will be Divided by the KeyWord of the same day: For. e.g. 03-05-2020: So 537580.07 / 91 = 5907.47. This value that is derived will then be Multiplied by the previous years Keyword to get the previous year's Actual search volume: So when we multiply 5907.47 to 54 which is the volume on 03-05-2018 ; I get the value as 319003.3. I need to achieve this in dynamically for all keywords.
Excel file is stored here: https://drive.google.com/file/d/1QZQzmyQmXSGpZF_R8MUsorrO36AIF8pT/view?usp=sharing
But the only thing here is: The current year should have the actual value where-as the previous years will have the calculated value in a same column. Is this achieveable in PowerBI?
Regards,
PrathSable