The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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) ) |