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
Anonymous
Not applicable

DAX to get the amount based on startdate and enddate

Can someone please help with DAX!

 

I need to match the start and end date and take the corresponding amount.

 

For example ,

12/29 =12/29 and the corresponding amount is 26700

 

anto_trop_0-1686168257195.png

Thanks

1 REPLY 1
amitchandak
Super User
Super User

@Anonymous , refer if this approach can help

A very simple formula can be with independent date table

 

CALCULATE(
SUM('Table'[Amount]),
'Table'[StartDate] >= SELECTEDVALUE('Date'[Date]) &&
'Table'[EndDate] <= SELECTEDVALUE('Date'[Date])
)

But refer better ways

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

 

Power BI: HR Analytics - Employees as on Date : https://youtu.be/e6Y-l_JtCq4
https://community.powerbi.com/t5/Community-Blog/HR-Analytics-Active-Employee-Hire-and-Termination-trend/ba-p/882970

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.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

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