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!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
I have this table and from the money table i want to cut the money per month , each month is 260 but if the amount is less than 20 i want the value to be 20 and then previous value -20 . Any idea how to do it?
Hi @viktorastzallas ,
Is this you want?
Please try this dax to do that:
Column =
var _a = 'Table'[acount]
VAR _L_20 = FILTER('Table',[acount]=EARLIER('Table'[acount])&&[value]<20)
var _COUNT_L_20 = COUNTROWS(_L_20)
var _SUM_L_20 = SUMX(_L_20,[value])
var _ADD1 = ADDCOLUMNS(_L_20,"A",MAXX(TOPN(1,FILTER('Table',[acount]=_a&&[value]>=20&&[INDEX]<EARLIER('Table'[INDEX])),[INDEX],DESC),[INDEX]))
VAR _DIS =SUMMARIZE(_ADD1,[A])
VAR _NUM= _COUNT_L_20*20 -_SUM_L_20
RETURN
IF([value]<20,20,IF(CONTAINSROW(_DIS,[INDEX]),[value]-_NUM,[value]))
Pbix in the end you can refer.
Best Regards
Community Support Team _ chenwu zhu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the September 2025 Power BI update to learn about new features.