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.
Hi there,
can anyone tell me, why this DAX isn't working but always showing the total instead of running total?
Running totals should be calculated by item.
Thanx!
Solved! Go to Solution.
remainingNew =
VAR __idx = itemLedgerEntryPurchase[Index]
RETURN
CALCULATE(
SUM( itemLedgerEntryPurchase[amount] ),
ALLEXCEPT( itemLedgerEntryPurchase, itemLedgerEntryPurchase[item] ),
itemLedgerEntryPurchase[Index] <= __idx
)
Expertise = List.Accumulate( {Days as from Today}, {Skills and Knowledge}, (Current, Everyday) => Current & Day.LearnAndPractise(Everyday) ) |
You can try the following dax measure
Running Total =
SUMX(
FILTER(
ALL(YourTable),
YourTable[Index] <= MAX(YourTable[Index]) ),
YourTable[ValueColumn]
)
remainingNew =
VAR __idx = itemLedgerEntryPurchase[Index]
RETURN
CALCULATE(
SUM( itemLedgerEntryPurchase[amount] ),
ALLEXCEPT( itemLedgerEntryPurchase, itemLedgerEntryPurchase[item] ),
itemLedgerEntryPurchase[Index] <= __idx
)
Expertise = List.Accumulate( {Days as from Today}, {Skills and Knowledge}, (Current, Everyday) => Current & Day.LearnAndPractise(Everyday) ) |