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.
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]
)
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 |
---|---|
42 | |
21 | |
21 | |
14 | |
13 |
User | Count |
---|---|
43 | |
39 | |
33 | |
18 | |
17 |