2 Table Running Total Not Working in Power BI

GeeWhiz7

Board Regular
Joined
Nov 22, 2021
Messages
214
Office Version
  1. 365
Platform
  1. Windows
  2. MacOS
Hi,
I'm new to Power BI having come over from the Spotfire world where I would not have this issue.

I have two tables (Main) and (Manufacturing) shown at the bottom of the thread.
I would like to, compute a simple running total/cumulative new column of Rate by ID and Date and end up with a table like the picture shown.

I've tried a few ways, but can't get a proper result and always get the Total of each Name as a single value (202+338+174=604). The "Run Total" column in the manufacturing table shows what I want to achieve, but I want to do it in Power BI. Clearly I'm missing something, but here is the syntax I'm using.

Thanks for your help.

PBI Run Total =
VAR MaxDate = MAX('Manufacturing'[Date])
RETURN
CALCULATE(
SUM(Manufacturing[Rate]),
FILTER(
ALLSELECTED(Manufacturing),
'Manufacturing'[Date]<=MaxDate
)
)

1668736413796.png



IDName
2721Alpha
1223Beta
3451Charlie


IDDateIndexRateRun Total
27211/1/201913030
27211/2/201923161
27211/3/20193566
27211/4/201941783
27211/5/201951194
27211/6/2019621115
27211/7/2019734149
27211/8/2019815164
27211/9/201997171
27211/10/20191023194
27211/11/2019118202
34511/1/2019121717
34511/2/2019132037
34511/3/2019142764
34511/4/201915771
34511/5/2019162394
34511/6/20191718112
34511/7/20191824136
34511/8/2019198144
34511/9/2019205149
34511/10/20192111160
34511/11/20192214174
12231/1/2019232525
12231/2/2019241237
12231/3/2019252865
12231/4/2019261277
12231/5/20192734111
12231/6/20192821132
12231/7/20192922154
12231/8/20193017171
12231/9/20193112183
12231/10/20193219202
12231/11/20193326228
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).

Forum statistics

Threads
1,214,833
Messages
6,121,868
Members
449,054
Latest member
juliecooper255

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top