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!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
Hi everyone,
the following problem steals my mind:
The values in the source system are only available on an annual basis with a city reference. I would like to view the values in the report on a monthly basis (divide annual value by 12) and filter by year and city.
Have already tried it via unions with a extra date table or pivot tables, but have not yet come to a solution.
The calculation methodology should only be done in PowerBI and not in Excel or similar.
Hope you can help me, thanks in advance!
Data:
filter: | year | city | ||||||
source system: | reporting: | |||||||
startdate | enddate | city | value | month | value | |||
01.01.2021 | 31.12.2021 | A-A | 30 | 1 | ||||
01.01.2021 | 31.12.2021 | A-B | 50 | 2 | ||||
01.01.2021 | 31.12.2021 | A-C | 70 | 3 | ||||
01.01.2022 | 31.12.2022 | A-A | 30 | 4 | ||||
01.01.2022 | 31.12.2022 | A-B | 50 | 5 | ||||
01.01.2022 | 31.12.2022 | A-C | 70 | 6 | ||||
01.01.2023 | 31.12.2023 | A-A | 30 | 7 | ||||
01.01.2023 | 31.12.2023 | A-B | 50 | 8 | ||||
01.01.2023 | 31.12.2023 | A-C | 70 | 9 | ||||
01.01.2021 | 31.12.2021 | B-A | 20 | 10 | ||||
01.01.2021 | 31.12.2021 | B-B | 30 | 11 | ||||
01.01.2021 | 31.12.2021 | B-C | 40 | 12 | ||||
01.01.2022 | 31.12.2022 | B-A | 20 | |||||
01.01.2022 | 31.12.2022 | B-B | 30 | |||||
01.01.2022 | 31.12.2022 | B-C | 40 | |||||
01.01.2023 | 31.12.2023 | B-A | 20 | |||||
01.01.2023 | 31.12.2023 | B-B | 30 | |||||
01.01.2023 | 31.12.2023 | B-C | 40 | |||||
01.01.2021 | 31.12.2021 | C-A | 10 | |||||
01.01.2021 | 31.12.2021 | C-B | 15 | |||||
01.01.2021 | 31.12.2021 | C-C | 20 | |||||
01.01.2022 | 31.12.2022 | C-A | 10 | |||||
01.01.2022 | 31.12.2022 | C-B | 15 | |||||
01.01.2022 | 31.12.2022 | C-C | 20 | |||||
01.01.2023 | 31.12.2023 | C-A | 10 | |||||
01.01.2023 | 31.12.2023 | C-B | 15 | |||||
01.01.2023 | 31.12.2023 | C-C | 20 |
Solved! Go to Solution.
Hi, @Jacky1
You can try the following methods.
Date table:
Date = CALENDAR(MIN('Table'[startdate]),MAX('Table'[enddate]))
Measure =
CALCULATE ( SUM ( 'Table'[value] ) / 12,
FILTER ( ALL ( 'Table' ),
[startdate].[Year] = SELECTEDVALUE ( 'Date'[Year] )
&& [city] = SELECTEDVALUE ( 'Table'[city] ) ) )
Is this the result you expect?
Best Regards,
Community Support Team _Charlotte
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, @Jacky1
You can try the following methods.
Date table:
Date = CALENDAR(MIN('Table'[startdate]),MAX('Table'[enddate]))
Measure =
CALCULATE ( SUM ( 'Table'[value] ) / 12,
FILTER ( ALL ( 'Table' ),
[startdate].[Year] = SELECTEDVALUE ( 'Date'[Year] )
&& [city] = SELECTEDVALUE ( 'Table'[city] ) ) )
Is this the result you expect?
Best Regards,
Community Support Team _Charlotte
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
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.