Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
I would like to add running totals to each campaign column so that instead of Campaign Day 6 have $26K, it will show $97K because it will add the Day 6 and Day 5 total together. I've seen some solutions for matrices with dates, but this has Campaign Days in the row. The value is sales and Campaign Name is the column value. Please see my table below. Any assistance would be appreciated!
Hi @philbert119 ,
Try this calculated column
Running Total COLUMN =
CALCULATE (
SUM ( 'Table'[Column2] ),
ALLEXCEPT('Table','Table'[Column0]),
'Table'[Column1] <= EARLIER ( 'Table'[Column1]
))
You can check more details from here.
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
I created the variable but i received an error message for the campaign days column, which is a whole number. It said "A single value for column 'Campaign Days' in table cannot be determined. This can happen when a measure formula refers to a column that contains many values without specifiying an aggregation such as min, max, count or sum to get a single result. I tried to change to text but received the same error.
Hi @philbert119 ,
Please provide me with more details about your table and your problem or share me with your pbix file from your Onedrive for Business.
Best Regards,
Stephen Tao
How would you like me to share the data? As to your ALLEXCEPT() suggestion, how would you suggest using it? Running Total = Sales, ALLEXCEPT(CampaignDay > Current Campaign Day). I'm not sure how to best write the DAX on that.
This should be doable using ALLEXCEPT(). Please provide sample data in usable format (not as a picture).
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 57 | |
| 38 | |
| 34 | |
| 18 | |
| 16 |
| User | Count |
|---|---|
| 68 | |
| 67 | |
| 42 | |
| 30 | |
| 28 |