Forum Discussion
Need Help on total percent
- 8 years ago
Hi,
Try this
=SUM('RPT DeliveryProjection'[TotalDeliveries]) / CALCULATE(SUM('RPT DeliveryProjection'[TotalDeliveries]),ALLEXCEPT('RPT DeliveryProjection','RPT DeliveryProjection'[WeekStarting]))
Hi,
The ALLEXCEPT function takes the first input as a Table. So the ALLEXCEPT portion should be:
ALLEXCEPT('RPT DeliveryProjection',['RPT DeliveryProjection'[WeekStarting])
Hey thanks, that raises the second error I get:
"The expression refers to multiple columns. Multiple columns cannot be converted to a scalar value."
The whole query:
Test = SUM('RPT DeliveryProjection'[TotalDeliveries]) / CALCULATE(SUM('RPT DeliveryProjection'[TotalDeliveries]),FILTER('RPT DeliveryProjection',ALLEXCEPT('RPT DeliveryProjection','RPT DeliveryProjection'[WeekStarting])))
- Ashish_Mathur8 years ago
Super User
Hi,
Try this
=SUM('RPT DeliveryProjection'[TotalDeliveries]) / CALCULATE(SUM('RPT DeliveryProjection'[TotalDeliveries]),ALLEXCEPT('RPT DeliveryProjection','RPT DeliveryProjection'[WeekStarting]))
- mypants8 years agoRegular Visitor
THANK YOU SO MUCH!
- Ashish_Mathur8 years ago
Super User
You are welcome.