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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
watje255_ju
Helper III
Helper III

Pro rate monthly amounts over fiscal weeks

Hello, 

I have a monthly forecast that is entered on the first/second day of the month, and I want to count the number of fiscal months in that month, pro rata the total amount, and then graph that pro rata'd amount over each fiscal week in that month so we can compare with weekly sales. 

 

Please see link to PBIX file Monthly Allocation Test.pbix and the desired result screenshot of the table below for the first few months 

 

Thanks!Desired Result.PNG

2 REPLIES 2
watje255_ju
Helper III
Helper III

Hi Yilong Zhou, thanks so much for your reply. The picture of the table and graph i showed was the desired solution, using the dataset in the PBIX file/model  I sent a link to in the original post - the dataset looks like the below. Thanks!  Monthly Allocation Test.pbix 

Thanks! Dataset.PNG

v-yilong-msft
Community Support
Community Support

Hi @watje255_ju ,

I create a table as you mentioned.

vyilongmsft_0-1713320138217.png

Then I get an Index column and create a new calculated column.

Column =
VAR _Current = 'Table'[Fiscal Week2]
RETURN
    CALCULATE (
        MAX ( 'Table'[Monthly Allocation] ),
        FILTER ( ALL ( 'Table' ), 'Table'[Fiscal Week2] = _Current )
    )

vyilongmsft_1-1713320533961.png

When I Put it into the Stacked column chart, you will get what you want.

vyilongmsft_2-1713320749662.png

 

 

 

Best Regards

Yilong Zhou

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors