Change the DataField of Line chart based on the Parameter value

Posted by: ashna.asif on 13 August 2019, 12:39 am EST

    • Post Options:
    • Link

    Posted 13 August 2019, 12:39 am EST

    Need : Change the DataField of Line chart based on the Parameter value.

    • “I have a parameter named Category which is a integer type with values 0,1.”

    • “I have a line chart.”

    • “My need is, if Category is chosen as 0 then DataFields of the chart should be one column else it should be another column.”

    • "I tried setting the expression as : ```

      IIF(Parameters!Category.Value = 0, Fields!Column1.Value, Fields!Column2.Value)

    but the above experission is not working."
    
    * "I also tried switching the column in query:
    

    select IIF(@Cat= 0, Column1, Column2) as DATA from Table;

    * "where ```
    @Cat
    ``` is parameter added in the [b]DataSet[/b]"
    "
    
    * "Then added ```
    DATA
    ``` to [b]DataFields[/b] of Line Chart.
    This too did not work."
    
    
    Is there any other way to achieve the need.
    I am using PageReport.
  • Posted 13 August 2019, 7:09 pm EST

    Hello,

    I am unable to reproduce the issue at my end. Please refer to the attached report.

    If the problem still occurs them, Could you please either modify the attached application or provide your own stripped-down report so that I can try reproducing the same behavior at my end and assist you further accordingly?

    Thanks

    rpt_Chart.zip

  • Posted 13 August 2019, 9:41 pm EST

    Hello,

    Report is bind with Nwind.mdb database which is located at C:\Users{User Name}\Documents\GrapeCity Samples\ActiveReports X\Data folder.

    Thanks

  • Posted 13 August 2019, 9:55 pm EST

    This one is working for me.

    Can you try the same in Page Report. I am facing this problem in PageReport.

    Thanks for replying.

  • Posted 13 August 2019, 9:59 pm EST

    Thanks.

    I am facing the problem while implementing the same in PageReports.

  • Posted 13 August 2019, 10:13 pm EST - Updated 30 September 2022, 6:45 am EST



    This is the result when i implement the same in PageReport.

    I have attached my work :temp.zip

  • Posted 13 August 2019, 11:14 pm EST

    Hello,

    I understood that the problem was with the chart i used and it has nothing to do with report type.

    Things are not working when I try to implement the same in Chart (type : Line).

    ActiveReport verison : 13

    Thanks

  • Posted 13 August 2019, 11:23 pm EST

    Hello,

    This is the known issue in ActiveReport 13 with DV chart. I have forwarded your concern to our development team 272757 and will inform you once I get any reply from them.

    Thanks

  • Posted 14 August 2019, 7:39 pm EST

    Hello,

    I am glad to tell you that this issue have been fixed in AR 13.2 which is scheduled to release in end of this month.

    Thanks,

    Mohit

  • Posted 18 August 2019, 3:58 pm EST

    Thanks, I will check it. But my trial period may end by end of this month.

  • Posted 18 August 2019, 4:03 pm EST

    Hello Ashna,

    I will provide you the extended trial key for 30 days when the AR 13.2 is released to evaluate the fix.

    Thanks.

  • Posted 19 August 2019, 3:38 pm EST

    Thanks[quote=“mohitg”]

    Hello Ashna,

    I will provide you the extended trial key for 30 days when the AR 13.2 is released to evaluate the fix.

    Thanks.

    [/quote]

    Thanks Mohit

  • Posted 26 August 2019, 9:29 pm EST

    Hello,

    Today I downloaded the latest ActiveReport (professional) from the site.

    Still i face the issue. Earlier graph was populated with incorrect data. But now its just blank graph is shown.

    File Version : 13.1.16872.0

    Assembly Version : 13.1.16872.0

  • Posted 27 August 2019, 7:22 pm EST

    Hello Ashna,

    Yes, AR13 SP1 have this issue. Could you please wait for the SP2 which include this type of fixes. Also, the release date of Sp2 is postponed to the first week of Sept.

    Sorry for the inconvenience caused.

    Thanks.

  • Posted 3 September 2019, 3:33 pm EST

    Hello,

    I am glad to tell you that AR 13 Sp2 has released now. You can download it from the following link:

    https://global-cdn.grapecity.com/downloads/activereports/ActiveReports-v13.2.18250.0.msi

    Please check the expression with the latest build. If the problem still occurs, please feel free to revert.

    Thanks.

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels