Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi,
I need to produce a visual that has the cumulative value (carbon emitted in the month) as a line and the monthly value plotted as a bar chart. I can't get the cumulative value right as it either just produces the monthly value or it doesn't calculate cumulatively from when the date slice date, it calculates cummatively from the start of the dataset.
The two measures I have created are as follows, with the first showing as the cumulative value from the beginning of the dataset when plotted:
I also need to filter it on another drop down list but can't get passed this at the minute!
Any help would be hugely appreciated.
James
Solved! Go to Solution.
Hi, thanks for getting back to me.
I managed to sort out the issue with the help of someone at work but I'll post more details below in case it's of use to anyone else.
The issue was that I had the data below and wanted to produce the graph below that, with the output varying depending on the date in the slicer.
Calendar data excerpt:
| Date | calendar_month_number | calendar_year | financial_year | fy_name |
| 01/04/2020 | 4 | 2020 | 2021 | FY21 |
| 02/04/2020 | 4 | 2020 | 2021 | FY21 |
| 03/04/2020 | 4 | 2020 | 2021 | FY21 |
| 04/04/2020 | 4 | 2020 | 2021 | FY21 |
| 05/04/2020 | 4 | 2020 | 2021 | FY21 |
| 06/04/2020 | 4 | 2020 | 2021 | FY21 |
| 07/04/2020 | 4 | 2020 | 2021 | FY21 |
| 08/04/2020 | 4 | 2020 | 2021 | FY21 |
Fuel data excerpt:
| project_name | delivery_date | kg_CO2e |
| Project A | April 2020 | 2857.87852 |
| Project A | May 2020 | 2474.43729 |
| Project B | May 2020 | 1348.94073 |
| Project A | June 2020 | 1462.0421 |
| Project A | October 2020 | 5517.14 |
| Project C | July 2020 | 6857.80502 |
| Project C | May 2020 | 1439.97354 |
Example graph:
I solved this by linking 'delivery_date' in the second table to 'Date' but making the relationship inactive. I then created 3 measures as follows:
Hi, thanks for getting back to me.
I managed to sort out the issue with the help of someone at work but I'll post more details below in case it's of use to anyone else.
The issue was that I had the data below and wanted to produce the graph below that, with the output varying depending on the date in the slicer.
Calendar data excerpt:
| Date | calendar_month_number | calendar_year | financial_year | fy_name |
| 01/04/2020 | 4 | 2020 | 2021 | FY21 |
| 02/04/2020 | 4 | 2020 | 2021 | FY21 |
| 03/04/2020 | 4 | 2020 | 2021 | FY21 |
| 04/04/2020 | 4 | 2020 | 2021 | FY21 |
| 05/04/2020 | 4 | 2020 | 2021 | FY21 |
| 06/04/2020 | 4 | 2020 | 2021 | FY21 |
| 07/04/2020 | 4 | 2020 | 2021 | FY21 |
| 08/04/2020 | 4 | 2020 | 2021 | FY21 |
Fuel data excerpt:
| project_name | delivery_date | kg_CO2e |
| Project A | April 2020 | 2857.87852 |
| Project A | May 2020 | 2474.43729 |
| Project B | May 2020 | 1348.94073 |
| Project A | June 2020 | 1462.0421 |
| Project A | October 2020 | 5517.14 |
| Project C | July 2020 | 6857.80502 |
| Project C | May 2020 | 1439.97354 |
Example graph:
I solved this by linking 'delivery_date' in the second table to 'Date' but making the relationship inactive. I then created 3 measures as follows:
Hi @james44452,
Can you please share a pbix or some dummy data that keep the raw data structure with expected results? It should help us clarify your scenario and test to coding formula.
How to Get Your Question Answered Quickly
Regards,
Xiaoxin Sheng
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!