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 need to include per row sum of column for next 12 indexs, but I have problem with my formula.
Somebody know the solution?
See me screen with description of result I need - probably need to fix conditionals but don't have idea how to do it.
Solved! Go to Solution.
The relatively new WINDOW function is probably the best approach for this.
Demand 13 Column =
VAR _window =
WINDOW(
0, 12,
ORDERBY( DemandWeekly[GroupIndex], ASC ),
PARTITIONBY( DemandWeekly[KeyDemandWeekly], DemandWeekly[ProductCode] )
)
RETURN
CALCULATE(
SUM( DemandWeekly[DemandWeekly] ),
REMOVEFILTERS( DemandWeekly ),
_window
)
The relatively new WINDOW function is probably the best approach for this.
Demand 13 Column =
VAR _window =
WINDOW(
0, 12,
ORDERBY( DemandWeekly[GroupIndex], ASC ),
PARTITIONBY( DemandWeekly[KeyDemandWeekly], DemandWeekly[ProductCode] )
)
RETURN
CALCULATE(
SUM( DemandWeekly[DemandWeekly] ),
REMOVEFILTERS( DemandWeekly ),
_window
)
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 |
---|---|
106 | |
97 | |
75 | |
63 | |
62 |
User | Count |
---|---|
135 | |
105 | |
104 | |
80 | |
65 |