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
steveo2302
Frequent Visitor

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:
 
steveo2302_0-1670862516520.png

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. 

steveo2302_1-1670862739909.png

 

 

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



2 REPLIES 2
amitchandak
Super User
Super User

@steveo2302 , Change data type variance as text

or Try like

 

Measure 2 = SELECTEDVALUE ( 'Time Intelligence'[Name] ) & ""

Unfortunately that didnt work 

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.