dbTalk Databases Forums  

Bug in KPI gauge? Or is it me?

microsoft.public.sqlserver.olap microsoft.public.sqlserver.olap


Discuss Bug in KPI gauge? Or is it me? in the microsoft.public.sqlserver.olap forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Stijn Verrept
 
Posts: n/a

Default Bug in KPI gauge? Or is it me? - 07-15-2006 , 07:52 AM






Check out the following screenshots I took from the KPI browser:

http://www.entrysoft.com/Gauge1.jpg value -0,5 showing it in green.
http://www.entrysoft.com/Gauge2.jpg value -1 showing it in red.
http://www.entrysoft.com/Gauge3.jpg value 0,5 showing it in green
(exact same position as -0,5).

I don't get it, is this a bug? What am I missing? I'm using SQL
Server 2005 SP1.


--
Kind regards,

Stijn Verrept.

Reply With Quote
  #2  
Old   
Jerome P
 
Posts: n/a

Default RE: Bug in KPI gauge? Or is it me? - 07-15-2006 , 08:18 AM






can you post the MDX syntax you use to identify the gauge color?

"Stijn Verrept" wrote:

Quote:
Check out the following screenshots I took from the KPI browser:

http://www.entrysoft.com/Gauge1.jpg value -0,5 showing it in green.
http://www.entrysoft.com/Gauge2.jpg value -1 showing it in red.
http://www.entrysoft.com/Gauge3.jpg value 0,5 showing it in green
(exact same position as -0,5).

I don't get it, is this a bug? What am I missing? I'm using SQL
Server 2005 SP1.


--
Kind regards,

Stijn Verrept.


Reply With Quote
  #3  
Old   
Stijn Verrept
 
Posts: n/a

Default Re: Bug in KPI gauge? Or is it me? - 07-15-2006 , 09:54 AM



Jerome P wrote:

Quote:
can you post the MDX syntax you use to identify the gauge color?
Sure:

Case When Round([Measures].[Percent Rejected], 4) < .0103 Then 1
When Round([Measures].[Percent Rejected], 4) >= .0103 AND
Round([Measures].[Percent Rejected], 4) < .0104 Then .5
When Round([Measures].[Percent Rejected], 4) >= .0104 AND
Round([Measures].[Percent Rejected], 4) < .0105 Then 0
When Round([Measures].[Percent Rejected], 4) >= .0105 AND
Round([Measures].[Percent Rejected], 4) < .0106 Then -.5
Else -1
End

--
Kind regards,

Stijn Verrept.


Reply With Quote
  #4  
Old   
Jerome P
 
Posts: n/a

Default Re: Bug in KPI gauge? Or is it me? - 07-15-2006 , 01:17 PM



try to use the case like this:
Case When Round([Measures].[Percent Rejected], 4) < .0103 Then 1
When Round([Measures].[Percent Rejected], 4) < .0104 Then .5
When Round([Measures].[Percent Rejected], 4) < .0105 Then 0
When Round([Measures].[Percent Rejected], 4) < .0106 Then -.5
Else -1
End

the system evaluate the value case by case until he found a match, so there
is no need to compare using >=

but I don't see something wrong in your query.
maybe there is a problem in the XSLT file to display the right picture for
the -0.5 value.


"Stijn Verrept" wrote:

Quote:
Jerome P wrote:

can you post the MDX syntax you use to identify the gauge color?

Sure:

Case When Round([Measures].[Percent Rejected], 4) < .0103 Then 1
When Round([Measures].[Percent Rejected], 4) >= .0103 AND
Round([Measures].[Percent Rejected], 4) < .0104 Then .5
When Round([Measures].[Percent Rejected], 4) >= .0104 AND
Round([Measures].[Percent Rejected], 4) < .0105 Then 0
When Round([Measures].[Percent Rejected], 4) >= .0105 AND
Round([Measures].[Percent Rejected], 4) < .0106 Then -.5
Else -1
End

--
Kind regards,

Stijn Verrept.


Reply With Quote
  #5  
Old   
Stijn Verrept
 
Posts: n/a

Default Re: Bug in KPI gauge? Or is it me? - 07-15-2006 , 05:02 PM



Jerome P wrote:

Quote:
the system evaluate the value case by case until he found a match, so
there is no need to compare using >=

but I don't see something wrong in your query.
maybe there is a problem in the XSLT file to display the right
picture for the -0.5 value.
Thanks, I replaced the query, good to know. Still the same results
however. How can I check the XSLT file? I'm doing this from a fresh
installed SQL2005 in the BI studio.

Do the values work with you?

--
Kind regards,

Stijn Verrept.


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.