SSRS: The report parameter ‘p1’ has a DefaultValue or a ValidValue that depends on the report parameter “p2”. Forward dependencies are not valid

While working on SSRS report recently, we were using 2 parameters. One parameter was depending on the value of the other parameter. While uploading the report to D365 environment, we got below error message and report was not uploaded: "The report parameter 'p1' has a DefaultValue or a ValidValue that depends on the report parameter … Continue reading SSRS: The report parameter ‘p1’ has a DefaultValue or a ValidValue that depends on the report parameter “p2”. Forward dependencies are not valid