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

NEED help, measure table creation

Hi people,

 

I am in a pickle.

At the moment I have standard table with calculated columns, "Resource in use (seconds)", "Total per resource" and "Utilization".
 Utilization.PNG

 

As this table is a calculated table, then it is not possible have the utilization value changing based on user selection. What I have now "discovered" is that, if I would create some of the columns as measure, then I should be able to get to the desired solution.

To calculate "Utilization %", the formula looks like this:

Utilization % = Resource[Worktime total for Resource]/Resource[Capacity (sec)]

As column "Capacity (sec)" is the difference between "Start of use" and "Todays date", then I have not been able to create a measure for that value.

 

My questions would be following:
Can I create a measure, which would read in the data from columns "Start of use" and "Todays date" and then take the diff? I have tried multiple times, but have not succeeded.

Perhaps it is possible to create "Start of use" and "Todays date" for all three resources as measures?

I hope I have made myself clear enough.

 

Best regards
Ramirenter

2 REPLIES 2
v-yuta-msft
Community Support
Community Support

@Anonymous ,

 

You may create a measure using dax below:

Capacity (sec) =
DATEDIFF ( Resource[Start of use], Resource[Todays date], DAY )

Community Support Team _ Jimmy Tao

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

Hi, 

 

Thanks for the reply. I have already tried that solution and it did not give the desired solution.

My question was and still is, can I somehow create a measure and assign it three different values as inputs.

 

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.