Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
45 | |
25 | |
19 | |
16 | |
8 |
User | Count |
---|---|
71 | |
49 | |
45 | |
20 | |
17 |