Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.
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.