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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

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

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

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

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
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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