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
akiaie
New Member

quarter value disstribution in a monthly column

Hi,

In power BI I have a table with column of 12 months of the year. in front of each month there is a value for business plan. however value for first month of each month is for whole quarter and Value for month 2 and month 3 of each month is zero. I want to create a measure which distributes the quarter value of business plan which is stored in month 1 of each quarter to be distributed on each month of the quarter equally. like below, I want the measure to return the value in Monthly column.

 

any help would be appreciated. I am new in DAX. 🙂 

YearMonthBusiness Planmothly 
202313000010000
20232010000
20233010000
202346000020000
20235020000
20236020000
202379900033000
20238033000
20239033000
2023103300011000
202311011000
202312011000
1 ACCEPTED SOLUTION
Jihwan_Kim
Super User
Super User

Hi,

I assume your datamodel has a calendar table.

Please check the below picture and the attached pbix file.

 

Jihwan_Kim_0-1685782609920.png

 

Jihwan_Kim_1-1685783730378.png

 

Monthly plan measure: =
SUMX (
    ADDCOLUMNS (
        SUMMARIZE (
            'Calendar',
            'Calendar'[Year],
            'Calendar'[Quarter],
            // 'Calendar'[Month name],
            'Calendar'[Month number]
        ),
        "result",
            CALCULATE (
                DIVIDE (
                    SUMX (
                        FILTER (
                            'Business Plan',
                            VAR _currentyear =
                                MAX ( 'Calendar'[Year] )
                            VAR _currentquarter =
                                MAX ( 'Calendar'[Quarter] )
                            RETURN
                                'Business Plan'[Year] = _currentyear
                                    && ROUNDUP ( DIVIDE ( 'Business Plan'[Month], 3 ), 0 ) = _currentquarter
                        ),
                        'Business Plan'[Business Plan]
                    ),
                    3
                )
            )
    ),
    [result]
)

 


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

View solution in original post

1 REPLY 1
Jihwan_Kim
Super User
Super User

Hi,

I assume your datamodel has a calendar table.

Please check the below picture and the attached pbix file.

 

Jihwan_Kim_0-1685782609920.png

 

Jihwan_Kim_1-1685783730378.png

 

Monthly plan measure: =
SUMX (
    ADDCOLUMNS (
        SUMMARIZE (
            'Calendar',
            'Calendar'[Year],
            'Calendar'[Quarter],
            // 'Calendar'[Month name],
            'Calendar'[Month number]
        ),
        "result",
            CALCULATE (
                DIVIDE (
                    SUMX (
                        FILTER (
                            'Business Plan',
                            VAR _currentyear =
                                MAX ( 'Calendar'[Year] )
                            VAR _currentquarter =
                                MAX ( 'Calendar'[Quarter] )
                            RETURN
                                'Business Plan'[Year] = _currentyear
                                    && ROUNDUP ( DIVIDE ( 'Business Plan'[Month], 3 ), 0 ) = _currentquarter
                        ),
                        'Business Plan'[Business Plan]
                    ),
                    3
                )
            )
    ),
    [result]
)

 


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

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!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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.