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

DAX Create a measure that reacts with date range

Hello,

 

I have two tables, a date table and an table with date ranges.

 

DateTable:

DATE Table
01/01/2023
01/02/2023
01/03/2023
01/04/2023

 

Item Date Range Table:

ITEMFROMDATETODATE
ITEM-A01/01/202301/02/2023
ITEM-B01/01/202301/04/2023
ITEM-A01/01/202301/04/2023

 

I would like to create a measure, that I can use along with the DATE Table, to get a count of items that could produce the following results.

 

DATE TableMeasure Val for Item-A
01/01/20232
01/02/20232
01/03/20231
01/04/20231

 

Thanks in advance.

 

Screenshot 2023-03-20 172925.png

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@gabereal , Refer if one of the two approaches can help

 

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-tr...

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

2 REPLIES 2
gabereal
Frequent Visitor

@amitchandak Ended up using the second example to implement the desired result. 

amitchandak
Super User
Super User

@gabereal , Refer if one of the two approaches can help

 

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-tr...

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

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

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.