Forum Discussion

steveo2302's avatar
steveo2302
Frequent Visitor
3 years ago

SELECTEDVALUE() not returning correct value

Hi,

 

I have a pretty standard time intellegence calculation group. I also created a calculation item called 'variance', which is fine and gives me the correct variance %.
I also have a measure which is used to conditionally format the background colour depending on if the calculation item contains certain text, eg "PY" and "variance". this works fine for all of them except the variance.

I have been able to isolate the issue and when using the following:

Measure 2 = SELECTEDVALUE ( 'Time Intelligence'[Name] )
The result is this:
 

with Name being the calculation item and Measure 2 being as defined above. (For reference the 'Variance' calculation item is currently just doing 10/3 otherwise this error appears) but you can see the result is incorrect. 

 

 

Does anybody know why using divison seems to cause these issues. 
 
Many thanks,
Steve



2 Replies