Share via

SSRS StripLines when a value changes

ihcc2uni 1 Reputation point
2020-09-28T20:10:41.367+00:00

I have a SSRS Scatter chart that I am trying to add StripLines to identify when the product changes. I have tried adding the expression in the StripLines Offset Interval section:

=IIF(Fields!FileName.Value <> Previous(Fields!FileName.Value), true, nothing)  

But no StripLines appear.

28901-no-striplines.png

Ideally, the StripLines would be appearing where I drew the purple lines below. Any suggestions would be great!

28911-striplines-added.png

SQL Server Reporting Services
SQL Server Reporting Services

A SQL Server technology that supports the creation, management, and delivery of both traditional, paper-oriented reports and interactive, web-based reports.

0 comments No comments

3 answers

Sort by: Most helpful
  1. ihcc2uni 1 Reputation point
    2020-10-01T02:39:35.087+00:00

    @ZoeHui-MSFT Will this work:

    29517-example-chart.png

    Was this answer helpful?


  2. ihcc2uni 1 Reputation point
    2020-09-30T14:57:09.627+00:00

    Hi @ZoeHui-MSFT ,

    The backend data is sensitive. I'm trying to figure out a way to make it generic. I can give details on the axis. The X-axis is just a count of points displayed. The Y-Axis is how close the plotted point is to the required target, with 0 (orange dashed line) being the target. The two solid orange lines at 12 are considered acceptable values.

    Basically the table format is Product Name, Product Sold Count, Price Sold and Target Price. The points on the graph is the different between Price Sold and Target Price. Each Product had a Product Sold count that starts at one. This counter resets when the product changes. My goal is to divide the chart by product like image above with purple dash lines.

    I've tried the following with no luck

     =IIF(Fields!Product.Value <> Previous(Fields!Product.Value), true, nothing)  
    
     =IIF(Fields!ProductSoldCount.Value > Previous(Fields!ProductSoldCount.Value), true, nothing)  
    

    I've also tried adding a Row_Number column and replacing true in above expressions to the Row_Number column value (which would align to the X-axis) to put vertical line at that point, but no luck either.

    I have had it plot the first line at X-axis 0, but can't get strip lines after that to generate.

    29368-data-example.png

    Was this answer helpful?


  3. ZoeHui-MSFT 41,551 Reputation points
    2020-09-29T03:18:47.85+00:00

    Hi @ihcc2uni ,

    Could you please share the chart data sample with us?

    It's really hard for us to guess the value of X-axis and Y-axis.

    With the sample data we could do more analysis to meet your needs.

    Regards,

    Zoe


    If the answer is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.