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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

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