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
ephramz
Helper II
Helper II

Need help with measure VALUES

Proposed Time = IF([Proposed Time] > 0, [Proposed Time], IF(VALUES('Table2'[Time(mins)])>0,VALUES('Table2'[Time(mins]),IF('Table2'[Allocated Time]>0,'Table2'[Allocated Time],BLANK())))

I have a measure as per above
'Table2'[Time(mins)] is a column value in Table2.
However, if i use VALUES('Table2'[Time(mins)]) in the measure, it significantly slows down the processing speed of the report.

How can I work around this/ how do i convert the column to a measure instead so i dont have to use the DAX function VALUES.

1 ACCEPTED SOLUTION
v-yanjiang-msft
Community Support
Community Support

Hi @ephramz ,

According to your description, I create a sample, Proposed Time is a column in table, while Time(mins) in another table, the two tables have relationship. When you use VALUES function, if the sample has more results meet the criteria, an error will occurred,because VALUES function returns a column, you can try to use MAX function to return the current value, but if measure have multiple results you will get only max result by Max function.

vkalyjmsft_0-1637126206008.png

Here's the VALUES function you can refer.

https://docs.microsoft.com/en-us/dax/values-function-daxVALUES function (DAX) - DAX | Microsoft Docs

 

If it still not work, please provide me with more details about your sample.

Best Regards,
Community Support Team _ kalyj

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

2 REPLIES 2
v-yanjiang-msft
Community Support
Community Support

Hi @ephramz ,

According to your description, I create a sample, Proposed Time is a column in table, while Time(mins) in another table, the two tables have relationship. When you use VALUES function, if the sample has more results meet the criteria, an error will occurred,because VALUES function returns a column, you can try to use MAX function to return the current value, but if measure have multiple results you will get only max result by Max function.

vkalyjmsft_0-1637126206008.png

Here's the VALUES function you can refer.

https://docs.microsoft.com/en-us/dax/values-function-daxVALUES function (DAX) - DAX | Microsoft Docs

 

If it still not work, please provide me with more details about your sample.

Best Regards,
Community Support Team _ kalyj

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

FarhanAhmed
Community Champion
Community Champion

Can you please share some sample data and desired output to get a better understanding of the problem. and if possible if you can share the data model screenshot.







Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!

Proud to be a Super User!




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