Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
The total quantity is incorrect. How can I fix this please?
Solved! Go to Solution.
Hi @JaclynPugh2022 ,
I am not sure if I understood your question correctly. Do you want to calculate only the rows with values greater than 0 in the subtotal?
Measure =
IF (
ISFILTERED ( Forecast[sublevel items] ),
SUM ( Forecast[Value] ),
CALCULATE (
SUM ( Forecast[Value] ),
FILTER (
SUMMARIZE (
Forecast,
Forecast[Item],
Forecast[sublevel items],
'Calendar'[Date].[Month],
"_sum", SUM ( Forecast[Value] )
),
[_sum] >= 0
)
)
)
If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @JaclynPugh2022 ,
Please try the measure.
Measure =
IF (
ISFILTERED ( 'Table'[MMM_YYYY] ),
[Rolling Avg MTD Qty 3 Mo],
SUMX ( VALUES ( 'Table'[MMM_YYYY] ), [Rolling Avg MTD Qty 3 Mo] )
)
If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
I like how this works, it adds up correctly; however, I still need to get the sublevel items so the part nubmers that roll up into this total to sum correctly. The part numbers do not sum up to the month total as shown below, for example, looking at Second Item, for July if I sum the totals of the below parts I get (104), but that is not right because the overall month total is correct (24). Any ides?
Hi @JaclynPugh2022 ,
I am not sure if I understood your question correctly. Do you want to calculate only the rows with values greater than 0 in the subtotal?
Measure =
IF (
ISFILTERED ( Forecast[sublevel items] ),
SUM ( Forecast[Value] ),
CALCULATE (
SUM ( Forecast[Value] ),
FILTER (
SUMMARIZE (
Forecast,
Forecast[Item],
Forecast[sublevel items],
'Calendar'[Date].[Month],
"_sum", SUM ( Forecast[Value] )
),
[_sum] >= 0
)
)
)
If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
User | Count |
---|---|
94 | |
86 | |
78 | |
70 | |
63 |
User | Count |
---|---|
114 | |
99 | |
97 | |
65 | |
59 |