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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
Ria
Frequent Visitor

Using start and end dates in a measure

I am trying to calculate the number of days of items in inventory over a period of time which can vary.  The start date is either the day the item came in inventory or the beginning of the period, (but need to filter out any days that the item came in after the end day).  The end date will be the end of the period or the date that the item left inventory. (but need to filter out any days where the item left inventory before the start date of the period.  I have thought of using excel tables with a start and end date that can be changed by the user, but seem unable to use these in either a calculated column or measure.  I have also looked at parameters which I have been able to create, but don't know where to go from there. 

 

 

 

4 REPLIES 4
Baskar
Resident Rockstar
Resident Rockstar

Can u pls share some data pls

Ria
Frequent Visitor

I have taken a different approach which resulted in creating columns and no longer need a solution to this problem.

Hi @Ria,

You can share the solution here, other community members would benefit from your solution when they get same issues.


Thanks,
Lydia Zhang

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
v-yuezhe-msft
Employee
Employee

Hi @Ria,

Based on your description, it is difficult for us to provide you a valid method. Would you please share sample data of your tables and post expected result here? We will appreciate that if you can post additional screenshots about your scenario.


Thanks,
Lydia Zhang

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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