The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
Hello everyone,
first post in this wonderful community, I do apologise if some information will be missing or won't be 100% clear, I will try my best.
I would like to create a running total that originates from a measure (I have read several topics on this forum, but I can't get my head around it).
I have 2 tables and some measures, couple of filters, I have attached a picture:
There is one single relation (1 to many) in between VIN columns:
Measure of the model:
Solved! Go to Solution.
@tmau , Hope Age from one side is used in visual
Calculate(Sumx(Values('V-I'[Age]), [RPT]), filter(all('V-I'),'V-I'[Age] <= Max('V-I'[Age]) ) )
or
Calculate(Sumx(Values('V-I'[Age]), [RPT]), filter(all('V-I'[Age]),'V-I'[Age] <= Max('V-I'[Age]) ) )
You can also consider the window function
Continue to explore Power BI Window function Rolling, Cumulative/Running Total, WTD, MTD, QTD, YTD, FYTD: https://youtu.be/nxc_IWl-tTc
https://medium.com/@amitchandak/power-bi-window-function-3d98a5b0e07f
@tmau , Hope Age from one side is used in visual
Calculate(Sumx(Values('V-I'[Age]), [RPT]), filter(all('V-I'),'V-I'[Age] <= Max('V-I'[Age]) ) )
or
Calculate(Sumx(Values('V-I'[Age]), [RPT]), filter(all('V-I'[Age]),'V-I'[Age] <= Max('V-I'[Age]) ) )
You can also consider the window function
Continue to explore Power BI Window function Rolling, Cumulative/Running Total, WTD, MTD, QTD, YTD, FYTD: https://youtu.be/nxc_IWl-tTc
https://medium.com/@amitchandak/power-bi-window-function-3d98a5b0e07f
@amitchandak thank you for your reply, I have tested the solution and it works (gonna mark it as accepted solution).
One question: if wanna add a parameter (for example, to have a legend in the plot), how should I modify the formula?
I have added "Y" in both tables.
The formula is still good, if the "Y" column is not considered:
Once I add the "Y" column, the values are not correct anymore:
I guess it is related to the fact that there is another entity to be considered in the formula.
Thank you in advance.