Join 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!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
I am not having any luck finding an answer so I am not sure if this is even doable. My problem is twofold. My first issue is I am trying to get a weighted average for a total with a filter (so I am using a measure). I am trying to divide the prior year daily total by the prior year monthly total for each month for each filtered category. For example, $1904/$30823 = .061, $1685/$30823 = .054, so on and so on.
I then need to multiply those percents against one entry on the first of each month that is the target. So I was only given one amount for the whole of January, $29,722. I need to arrive at a daily amount by multiplying the .061 x $29,722 for Jan 1, .054 x $29,722 for Jan 2 and so on and so on.
Is this feasibile?
This is complicated at first glance, but breaking the measures in steps makes it a lot simpler.
I assume you already have expressions to return the latest year, and previous year.
First steps are to work out the daily amounts for the current / previous year and then use that expression to get the total for the month:
exp current yr = CALCULATE([Exp],FILTER(Table1,Table1[year]=[Latest Selected Year]))
exp prev yr = CALCULATE([Exp],FILTER(Table1,Table1[year]=[Prev Year]))
month total current yr = CALCULATE([exp current yr],ALLEXCEPT(Table1,Table1[month]))
month total prev yr = CALCULATE([exp prev yr],ALLEXCEPT(Table1,Table1[month]))
day % of month curr = [exp current yr]/[month total current yr]
day % of month prev = [exp prev yr]/[month total prev yr]Prev yr pc X Month Tgt = [day % of month prev] * CALCULATE(sum(Table1[Target]),ALLEXCEPT(Table1,Table1[month]))
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
Check out the November 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 20 | |
| 10 | |
| 9 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 32 | |
| 31 | |
| 18 | |
| 12 | |
| 11 |