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.
How do I create a calculated column that accomplishes the same transformations as the transformation shown in the Excel Example?
Excel Example
Solved! Go to Solution.
Hi @Anonymous
Is there only one value in column K currently? You can try this column expression
Column =
var _firstK=MAXX(FILTER(ALL('Table'),'Table'[K]<>BLANK()),'Table'[K])
var _sumH=SUMX(FILTER(ALL('Table'),'Table'[Index]<=EARLIER('Table'[Index])),'Table'[H])
var _sumI=SUMX(FILTER(ALL('Table'),'Table'[Index]<=EARLIER('Table'[Index])),'Table'[I])
var _sum=_firstK-_sumH+_sumI
return _sum
result
Best Regards,
Community Support Team _Tang
If this post helps, please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous
Is there only one value in column K currently? You can try this column expression
Column =
var _firstK=MAXX(FILTER(ALL('Table'),'Table'[K]<>BLANK()),'Table'[K])
var _sumH=SUMX(FILTER(ALL('Table'),'Table'[Index]<=EARLIER('Table'[Index])),'Table'[H])
var _sumI=SUMX(FILTER(ALL('Table'),'Table'[Index]<=EARLIER('Table'[Index])),'Table'[I])
var _sum=_firstK-_sumH+_sumI
return _sum
result
Best Regards,
Community Support Team _Tang
If this post helps, please consider Accept it as the solution to help the other members find it more quickly.