Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.
Below is a screenshot of my data. I'm attempting to calculate the weighted average percentage increase in employees for weeks up to the last week of data for TY Employees. I've used the following code to do this statically: % Change in Employees YTD = CALCULATE(SUM(Hours[TY Employees])/SUM(Hours[LY Employees])-1, FILTER(WeekBridge, WeekBridge[Week]<=8)). TY Employees and LY employees are both calculated columns. The code above was used to create the card with 16.9% to the right.
Does anyone know how to do this dynamically without creating additional tables? Please advise if you need additional information to answer the question. Thanks in advance!
Take a good look at https://www.sqlbi.com/articles/calculated-columns-and-measures-in-dax/.
Thanks!
By the way, if it helps, you may help accept solution. Your contribution is highly appreciated.
The solution was helpful but I'm not sure that it's exactly what I'm looking for. I'm still without a solution.
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.