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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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

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

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors