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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
Suryateza
Frequent Visitor

DAX Measure

Hi,

I have a column of total revenue, and from that, I need the sum of the revenue for only the paid nights, which are populating based on the date range that we selected.

For example, the selected date range is 01/08/2023–31/08/2023. The arrival date is June 8, 2023, and the departure date is September 30, 2023, and the paid nights are 31 because the date range we set is only August.

Now the total revenue is for all the nights (114), but I need the sum of revenue for only 31 nights as they fall in the date range we selected.

I need to show the sum of revenue for paid nights from the total revenue.

Note:The revenue for each night is different.

How can I achieve this? Please help.

Suryateza_0-1695743174319.png

 

 

 

1 REPLY 1
amitchandak
Super User
Super User

@Suryateza , Do you need allocation between date range


Power BI Dax Measure- Allocate data between Range: https://youtu.be/O653vwLTUzM

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.