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
Samuelcurr1e
Frequent Visitor

Spread revenue across contract length

I want to be able to graphically show the expected revenue from potential contracts.

 

The data looks a little like the below:

 

Opportunitu ID= ........

Opportunity Name= .......

Contract Value= 1,000,000

Start Date= 01/01/2018

End Date= 01/01/2019

Months= 12

 

I want to be able to equally split the 1,000,000 across the 12 months and display that in my chart. Is it possible in DAX to do so? I have created a Date table that is linked to my dataset.

 

Thanks

Sam

1 ACCEPTED SOLUTION

3 REPLIES 3
Zubair_Muhammad
Community Champion
Community Champion

@Samuelcurr1e

 

You can create a NEW CALCULATED TABLE to expand the range of dates into ROWS

 

From the Modelling tab>>New Table

 

New Table =
GENERATE ( TableName, GENERATESERIES ( 0, TableName[Month], 1 ) )

Now you can add new Columns to your Table to get the desired Columns

 

Dates =
EOMONTH ( 'New Table'[Start Date], 'New Table'[Value] - 1 )
    + 1
Split_Contract_Value =
'New Table'[Contract Value]
    / ( 'New Table'[Month] + 1 )

Regards
Zubair

Please try my custom visuals
Anonymous
Not applicable

are you able to provide the same in excel?

@Samuelcurr1e

 

Please see the attached file here

 

Hope it will give you the idea


Regards
Zubair

Please try my custom visuals

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.