Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hello !
How do you calculate minus in power bi, i.e. I have a baseline = 208 and then I have another field with values to be accumulated downwards, see my example:
Forecast is calculated from another variable called "Effekt CO2 (sustainability)"
ÅR | Prognos |
2022 | 208 |
2023 | 208 |
2024 | 208 |
2025 | 187,18 |
2026 | 187,18 |
2027 | 182,58 |
2028 | 182,58 |
2029 | 176,28 |
2030 | 176,28 |
Solved! Go to Solution.
Hi @Anonymous for solution as below, please create Date / Calendar Table in Power BI and connect / create relationship with your Year column.
After that please create following measures 83), adopt Sheet1 with your table name
To get visuals as below, please use Year colum from created Date / Calendar table
Did I answer your question? Kudos appreciated / accept solution!
Proud to be a Super User!
Hi @Anonymous "it depends 🙂", provide more model data, relationships and for variable to get some feedback as possible solution.
Proud to be a Super User!
Hello again! That is, I want the calculations to start at 208, but then it should be accumulated based on this table:
Hi @Anonymous Inforande is Date type column? In column Basline there will be always single amount for each year, like 208?
Proud to be a Super User!
Hi @Anonymous Informande is Date type column? It is only a date column with Year
In column Baseline there will always be a single amount for each year, like 208? Yes only 208, but I don't know if I'm thinking wrong or if the year 2022 should start with 208 and then calculate it based on "Summa of Effect CO2 (sustainability)"
Hi @Anonymous for solution as below, please create Date / Calendar Table in Power BI and connect / create relationship with your Year column.
After that please create following measures 83), adopt Sheet1 with your table name
To get visuals as below, please use Year colum from created Date / Calendar table
Did I answer your question? Kudos appreciated / accept solution!
Proud to be a Super User!
Hello !
The first solution worked great, but now when I want to filter on "åtgärder" or "Skede" it calculates wrong, do you know how to fix this? For exampel se he picture
I can add the test file I have if it easyier ?
Hi @Anonymous measure for this case should use date related columns from Date / Calendar table
To get visuals as below, please use Year colum from created Date / Calendar table
Proud to be a Super User!
User | Count |
---|---|
22 | |
11 | |
8 | |
6 | |
6 |
User | Count |
---|---|
25 | |
13 | |
11 | |
9 | |
6 |