Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Jacky1
Regular Visitor

Yearly values in monthly needed but table has the raw data only in yearly view

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:yearcity
         
source system:     reporting:  
 startdateenddatecityvalue  monthvalue
 01.01.202131.12.2021A-A30  1 
 01.01.202131.12.2021A-B50  2 
 01.01.202131.12.2021A-C70  3 
 01.01.202231.12.2022A-A30  4 
 01.01.202231.12.2022A-B50  5 
 01.01.202231.12.2022A-C70  6 
 01.01.202331.12.2023A-A30  7 
 01.01.202331.12.2023A-B50  8 
 01.01.202331.12.2023A-C70  9 
 01.01.202131.12.2021B-A20  10 
 01.01.202131.12.2021B-B30  11 
 01.01.202131.12.2021B-C40  12 
 01.01.202231.12.2022B-A20    
 01.01.202231.12.2022B-B30    
 01.01.202231.12.2022B-C40    
 01.01.202331.12.2023B-A20    
 01.01.202331.12.2023B-B30    
 01.01.202331.12.2023B-C40    
 01.01.202131.12.2021C-A10    
 01.01.202131.12.2021C-B15    
 01.01.202131.12.2021C-C20    
 01.01.202231.12.2022C-A10    
 01.01.202231.12.2022C-B15    
 01.01.202231.12.2022C-C20    
 01.01.202331.12.2023C-A10    
 01.01.202331.12.2023C-B15    
 01.01.202331.12.2023C-C20    
1 ACCEPTED SOLUTION
v-zhangti
Community Support
Community Support

Hi, @Jacky1 

 

You can try the following methods.

Date table:

Date = CALENDAR(MIN('Table'[startdate]),MAX('Table'[enddate]))

vzhangti_0-1690357723604.png

Measure = 
CALCULATE ( SUM ( 'Table'[value] ) / 12,
    FILTER ( ALL ( 'Table' ),
        [startdate].[Year] = SELECTEDVALUE ( 'Date'[Year] )
            && [city] = SELECTEDVALUE ( 'Table'[city] ) ) )

vzhangti_2-1690357770353.png

vzhangti_1-1690357757179.png

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.

 

View solution in original post

1 REPLY 1
v-zhangti
Community Support
Community Support

Hi, @Jacky1 

 

You can try the following methods.

Date table:

Date = CALENDAR(MIN('Table'[startdate]),MAX('Table'[enddate]))

vzhangti_0-1690357723604.png

Measure = 
CALCULATE ( SUM ( 'Table'[value] ) / 12,
    FILTER ( ALL ( 'Table' ),
        [startdate].[Year] = SELECTEDVALUE ( 'Date'[Year] )
            && [city] = SELECTEDVALUE ( 'Table'[city] ) ) )

vzhangti_2-1690357770353.png

vzhangti_1-1690357757179.png

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.

 

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.