Forum Discussion
te271203
3 months agoRegular Visitor
Tableau to PowerBI Running Totals Issue
Hello all, I have two data sets: one is in a Redshift table and the other is an Excel file containing monthly totals for the table's data set. Attached are screenshots from Tableau and PowerB...
- 2 months ago
Thanks for reaching out. I was able to solve it using a Python script and by adding a few New Data Model tables with joins, which helped me get the cumulative dashboard aligned with the target.
danextian
3 months agoSuper User
Hi te271203
The simplest approach is to use visual calculation
But the usal DAX pattern is:
Running Sum Measure =
CALCULATE (
[your measure], -- Base measure to be evaluated (e.g. SUM of sales, revenue, etc.)
FILTER (
ALL ( DatesTable ),
-- Removes any existing filters on the DatesTable
-- so the calculation considers the full date range
DatesTable[Date Column] <= MAX ( DatesTable[DateColumn] )
-- Keeps only dates up to the current row/context date
-- MAX(DateColumn) represents the current evaluation date in context
)
)