The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
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 returned:
The total I am looking for is 17+24+13+5+2 = 61
Is there a way to calculate this total?
Solved! Go to Solution.
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]
)
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]
)