Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount.
Register nowThe Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.
Solved! Go to Solution.
Hi @RodolfoGuti ,
Or like this?
Dias_Stock_Enero =
VAR __i = 31
VAR __loopTable = GENERATESERIES(1,__i)
VAR __loopTable1 = ADDCOLUMNS(__loopTable,"__i",Date(2020,1,[Value]))
VAR __loopTable2 = ADDCOLUMNS(__loopTable1,"sum",SUMX(FILTER(Query1,[DocDate]<=[__i]),[cantidad]))
VAR __loopTable3 = ADDCOLUMNS(__loopTable2,"cant",COUNTX( FILTER(__loopTable2,[sum]>0), [sum]) )
RETURN
SUMX(__loopTable3,[cant])
Best regards,
Lionel Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @RodolfoGuti ,
Or like this?
Dias_Stock_Enero =
VAR __i = 31
VAR __loopTable = GENERATESERIES(1,__i)
VAR __loopTable1 = ADDCOLUMNS(__loopTable,"__i",Date(2020,1,[Value]))
VAR __loopTable2 = ADDCOLUMNS(__loopTable1,"sum",SUMX(FILTER(Query1,[DocDate]<=[__i]),[cantidad]))
VAR __loopTable3 = ADDCOLUMNS(__loopTable2,"cant",COUNTX( FILTER(__loopTable2,[sum]>0), [sum]) )
RETURN
SUMX(__loopTable3,[cant])
Best regards,
Lionel Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
User | Count |
---|---|
21 | |
19 | |
12 | |
9 | |
8 |
User | Count |
---|---|
31 | |
27 | |
15 | |
13 | |
10 |