Nevron Forum
Back
Login
Register
Login
Register
Home
»
Nevron Vision for SharePoint
»
Nevron Chart for SharePoint
»
Filter by IF and Like?
Filter by IF and Like?
Post Reply
Filter by IF and Like?
View
Flat Ascending
Flat Descending
Threaded
Options
Subscribe to topic
Print This Topic
Goto Topics Forum
Author
Message
Nevron Support
Nevron Support
posted 10 Years Ago
ANSWER
Post Details
Group: Administrators
Posts: 3.1K,
Visits: 4.2K
We are not familiar with your category data groupings -> you perhaps need to first group the data by Fields!Symbol and then make some statistics on it.
Best Regards,
Nevron Support Team
Reply
Like
0
Jonathan Green
Jonathan Green
posted 10 Years Ago
ANSWER
Post Details
Group: Forum Members
Posts: 6,
Visits: 12
Super .So if I then wanted to add a second value to display data from the 1tWBS symbol I could then use then use:
=IF(LIKE(LAST(Fields!Symbol), "1tWBS"), Fields!closeval, 40 ) ?
Reply
Like
0
Nevron Support
Nevron Support
posted 10 Years Ago
ANSWER
Post Details
Group: Administrators
Posts: 3.1K,
Visits: 4.2K
The Fields!Symbol reference returns an array. The LIKE function convers that array to Boolean values. However the IF function requires that the passed value is convertible to Boolean. You need to refactor the expression as either:
=IF(FIRST(LIKE(Fields!Symbol, "1tBRN")), Fields!closeval, 40 )
or even better:
=IF(LIKE(FIRST(Fields!Symbol), "1tBRN"), Fields!closeval, 40 )
Best Regards,
Nevron Support Team
Reply
Like
0
Jonathan Green
Jonathan Green
posted 10 Years Ago
ANSWER
Topic Details
Group: Forum Members
Posts: 6,
Visits: 12
If I use the following =IF(LIKE(Fields!Symbol, "1tBRN"), Fields!closeval, 40 ) as a data value against the following data I get a nice chart:
date
Symbol
closeval
Type
Text
Text
Double
04-12-2015
1tBRN
57.86
04-13-2015
1tBRN
57.93
04-14-2015
1tBRN
58.43
If I use the dame formula against mixed data
date
Symbol
closeval
Type
Text
Text
Double
04-12-2015
1tBRN
57.86
04-12-2015
1tWBS
51.52
04-13-2015
1tBRN
57.93
04-13-2015
1tWBS
51.91
04-14-2015
1tBRN
58.43
04-14-2015
1tWBS
53.29
04-15-2015
1tBRN
60.32
I get :
An error occured during the web part rendering. The error was: Pivot processing failed during: Phase: Processing Pivot - Data Matrix - Properties, Action: Evaluating - =IF(LIKE(Fields!Symbol, "1tWBS"), Fields!closeval, 45 ). Error was: Unable to cast object of type 'Nevron.FormulaEngine.NVariant[]' to type 'System.IConvertible'.
Reply
Like
0
GO
Merge Selected
Merge into selected topic...
Merge into merge target...
Merge into a specific topic ID...
Open Merge
Post Reply
Similar Topics
Post Quoted Reply
Reading This Topic
Login
Login
Remember Me
Reset Password
Resend Validation Email
Login
Explore
Messages
Mentions
Search