
Not applicable
2016-07-29
04:20 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Line Chart - Changing Line Style for downward trend
How can the Line Style of an expression be changed from Solid to Dashed only on a downward trend from the previous value?
This chart should show dashed line from May 2016 to Jun 2016 and from Jul 2016 onward.
The formula in the Line Style (red line only) is as follows:
=If(Above(Sales) > Sales, '<S2>','<S1>')
758 Views
1 Solution
Accepted Solutions

Employee
2016-07-29
04:44 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
5 Replies

Employee
2016-07-29
04:44 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Try with Below()
=If(Below(Sales) < Sales, '<S2>','<S1>')

Not applicable
2016-08-08
08:52 AM
Author
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I've tried that, but it shows the dashed line style on the upward trend. With Above, I get a mix of the dashed line style on both upward/downward trends.
531 Views

MVP
2016-08-08
11:37 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Clever's logic seems to be working for me

Not applicable
2016-08-08
12:05 PM
Author
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Well, I rebuild the chart using Clever's suggestion and now it seems to be working. Not sure what the issue was, but Below() worked this time. Thank you.

MVP
2016-08-08
12:11 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Good
