Forum Discussion
Freekh
4 years agoFrequent Visitor
Matrix row total not matching values
Hi, I can't seem to calculate the correct weektotal. The values calculated per day are correct and need to be summed per week. This is the formule is use: Below the values which are...
- 4 years ago
Try moving your first three variables inside so they are calculated for each date separately.
# Rest Pallets = SUMX ( ADDCOLUMNS ( SUMMARIZE ( fct_Scanning, dimDate[Date], fct_Scanning[DC] ), "RestPallets", CALCULATE ( VAR Pallets = [...] VAR FTL = [...] VAR WholeFTL = [...] RETURN IF ( [...] ) ) ), [RestPallets] )
AlexisOlson
Super User
4 years agoTry moving your first three variables inside so they are calculated for each date separately.
# Rest Pallets =
SUMX (
ADDCOLUMNS (
SUMMARIZE ( fct_Scanning, dimDate[Date], fct_Scanning[DC] ),
"RestPallets",
CALCULATE (
VAR Pallets = [...]
VAR FTL = [...]
VAR WholeFTL = [...]
RETURN
IF ( [...] )
)
),
[RestPallets]
)Freekh
4 years agoFrequent Visitor