Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request 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] )
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 7 | |
| 6 | |
| 4 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 25 | |
| 17 | |
| 9 | |
| 8 | |
| 7 |