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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Accrueing amount in months

Hi all

 

I have a problem, that I just can't see the solution to.

I have a lot of project that have all estimated their finacial risks together with the earliest date and the finishing date. I need the acrrue the risk amount on the months in the period. I can calcuate the monthly amount but can't figure out how to show it per months.

 

I have a tabel looking like this (just with a lot more entries) and a date tabel with all unique dates.

ProjectRiskAmountstart dateend date
Project ARisk 11000001-04-201901-07-2019
Project ARisk 2400001-06-201901-01-2020
Project ARisk 3600001-08-201901-07-2020
Project BRisk 17000001-12-201831-03-2020
Project BRisk 2500001-01-201901-10-2019
Project BRisk 32000001-03-201901-02-2020

 

And I need a visual similar to this

 AprilMayJuneJulyAugustSeptemberOctoberNovemberDecember
Project A         3.333         3.333           3.905               571         1.117         1.117         1.117         1.117         1.117
Project B         6.749         6.749           6.749           6.749         6.749         6.749         6.749         6.193         6.193

 

I can see that the solution somehow would be a tabel with the risks splitted up by months, but how can I create that..

Hope someone is able to help.

 

Thanks

1 ACCEPTED SOLUTION
v-cherch-msft
Employee
Employee

Hi @Anonymous 

You may create a calendar table first.Then use GENERATE function to get the table.

Table 2 =
FILTER (
    GENERATE ( 'Table', Table1 ),
    Table1[start date] <= 'Table'[Date]
        && Table1[end date] >= 'Table'[Date]
)

Regards,

Community Support Team _ Cherie Chen
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

2 REPLIES 2
v-cherch-msft
Employee
Employee

Hi @Anonymous 

You may create a calendar table first.Then use GENERATE function to get the table.

Table 2 =
FILTER (
    GENERATE ( 'Table', Table1 ),
    Table1[start date] <= 'Table'[Date]
        && Table1[end date] >= 'Table'[Date]
)

Regards,

Community Support Team _ Cherie Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Thanks it worked perfectly!

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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