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
jugisahunk
New Member

How to Divide Measure by Constant

Ok, n00b here. My searching is weak so I didn't find anything that satisfied my need.

 

I have a dataset of work items. I have a lead time column present on each record. It is in minutes, and I want to create a measure that displays lead time in hours. I want that measure to be (in pseudo code):

 

lead time (hrs) = lead time / 60

 

I'm finding this difficult to do in DAX. What is your advice?

1 ACCEPTED SOLUTION
v-yulgu-msft
Employee
Employee

Hi @jugisahunk,

 

Please refer to below measure:

lead time (hrs) = SELECTEDVALUE(Dataset[lead time])/ 60
Best regards,
Yuliana Gu
Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
Yosi
Frequent Visitor

It does not work... I have a column of counts and need to divide ach value by a constant - this soln does not work

v-yulgu-msft
Employee
Employee

Hi @jugisahunk,

 

Please refer to below measure:

lead time (hrs) = SELECTEDVALUE(Dataset[lead time])/ 60
Best regards,
Yuliana Gu
Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

This gives me what I need :). Unfortunately, I'm getting an error when I try to accept this as a solution.

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.