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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
Anonymous
Not applicable

Revenue by Month, Start Date and End Date

Hi,

 

I have been attempting (somewhat sucessfully) to distribute revenue from hires over months.

 

I have a bunch of hire data with the following:

 

Hire Table:

AttributeTypes of Instances
Hire TypeH or L
Address Num#######
Asset Number####

Start Date

01/07/2020

End Date

05/09/2020

Weekly Rate

500

 

I also have a table called global dates, which contains every date in the finaincial year and month formated "yyyy-mm"

 

The below DAX formula has given me some sucess, however when I total it all, the numbers do not match the tally in the monthly figures.

 

RevInMonth = CALCULATE(
SUMX('Hire Table',
      (MIN('Hire Table'[End Date],LASTDATE('Global Dates'[Date])) -
      MAX('Hire Table'[Start Date], FIRSTDATE('Global Dates'[Date]))+1) * 'Hire Table'[User Amount] / 7
       ),
FILTER(
     'Hire Table',
      DATE( YEAR( 'Hire Table'[Start Date] ), MONTH( 'Hire Table'[Start Date]) , 1)
      <= FIRSTDATE( 'Global Dates'[Date])
&& (
       EOMONTH( 'Hire Table'[End Date], 0) >= LASTDATE('Global Dates'[Date])
       )
&& (
       'Hire Table'[W.O. Type] = "E"
)
)
)
 
 
Can anyone give me some advice on how to properly formulate this. Please bare in mind I need to catagorise by the type of hire and the address number (customer). Everywhere else i have looked at seems to only sumerise by month without any way of breaking down the revenue.
 
Many thanks in advance
1 ACCEPTED SOLUTION
2 REPLIES 2
Anonymous
Not applicable

Thanks you @amitchandak just what i needed.

Helpful resources

Announcements
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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