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!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
Hi @Hamdi-FAKHFAKH ,
Here are the steps you can follow:
1. Create calculated column.
Total stock =
var _mindate=MINX(FILTER(ALL('Table'),'Table'[somme des achats]=EARLIER('Table'[somme des achats])), 'Table'[DATE])
var _currentdate='Table'[DATE]
return
SUMX(
FILTER(ALL('Table'),
'Table'[DATE]>=_mindate&&'Table'[DATE]<=EARLIER('Table'[DATE])
&&
'Table'[somme des achats]=EARLIER('Table'[somme des achats])
),[somme des achats])
2. Result:
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
Hi @Hamdi-FAKHFAKH ,
Here are the steps you can follow:
1. Create calculated column.
Total stock =
var _mindate=MINX(FILTER(ALL('Table'),'Table'[somme des achats]=EARLIER('Table'[somme des achats])), 'Table'[DATE])
var _currentdate='Table'[DATE]
return
SUMX(
FILTER(ALL('Table'),
'Table'[DATE]>=_mindate&&'Table'[DATE]<=EARLIER('Table'[DATE])
&&
'Table'[somme des achats]=EARLIER('Table'[somme des achats])
),[somme des achats])
2. Result:
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
@Hamdi-FAKHFAKH
Use
=
CALCULATE (
SUM ( 'Table'[Column] ),
'Table'[Date] <= EARLIER ( 'Table'[Date] ),
ALL ( 'Table' )
)
the same problem 😔
@Hamdi-FAKHFAKH
Sorry for that. Please try
=
VAR CurrentDate = 'Table'[Date]
VAR T1 =
FILTER ( 'Table', 'Table'[Date] <= CurrentDate )
RETURN
SUMX ( T1, 'Table'[Column] )
User | Count |
---|---|
14 | |
10 | |
7 | |
6 | |
5 |
User | Count |
---|---|
30 | |
19 | |
12 | |
7 | |
5 |