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.
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.
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 |
---|---|
98 | |
96 | |
75 | |
71 | |
64 |
User | Count |
---|---|
143 | |
109 | |
103 | |
82 | |
74 |