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
This is a complicated situation for this calculation, but please help me make this.
There are week numbers. In every week there are made hours that consist both of direct hours (directe uren) and indirect hours (indirecte uren).
For every week number (week nummer), I already was able to show the total hours made in that week number in that year (jaar).
I still need to calculate the percentage of the total indirect hours in that week opposed to the total hours (indirect+direct) of that week.
This might not be possible to show in a colomn since it's different per week number but I want to at least show it in a table in the visuals.
Here is a better view of the current situation(blurred for privacy):
Solved! Go to Solution.
Hi @Anonymous ,
If you want to get sum of each Year and each Week, just modify @amitchandak 's method like:
Column=sumx(filter( table,[Year]=earlier('Table'[Year])&& [Week Number] = earlier('Table'[Week Number])), Table[Value])Measure=sumx(filter(allselected( table),[Year]=MAX('Table'[Year]) && [Week Number] = Max('Table'[Week Number])), Table[Value])
Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous ,
If you want to get sum of each Year and each Week, just modify @amitchandak 's method like:
Column=sumx(filter( table,[Year]=earlier('Table'[Year])&& [Week Number] = earlier('Table'[Week Number])), Table[Value])Measure=sumx(filter(allselected( table),[Year]=MAX('Table'[Year]) && [Week Number] = Max('Table'[Week Number])), Table[Value])
Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@Anonymous , if you need a column your denominator will be
Example
sumx(filter( table, Table[Week Number] = earlier([Week Number]) ) , Table[Value])
oa measure
sumx(filter(allselected( table), Table[Week Number] = Max([Week Number]) ) , Table[Value])
Hi Amitchandak,
I think this example shows a new column containing the total value for each week number.
The problem is that I have more than one year and both are using the same weeknumbers. So this total per week number is for all years. Any solution to this?
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 |
|---|---|
| 59 | |
| 46 | |
| 42 | |
| 23 | |
| 18 |
| User | Count |
|---|---|
| 193 | |
| 124 | |
| 101 | |
| 67 | |
| 49 |