Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
navj
Regular Visitor

Power BI Paginated Reports Issue: Error BC30205 and Aggregate expression with recursive simple flag

Hi, 

I'm building a report from a single data source. The data source has many project records, each one is has a ContractID with associated fields about the specific ContractID. I've built a template where I have the ContractID field, and then a number of other fields layed out on the page as if a form. I'm having two problems/errors every time I try to visualize the report: 

  1. The Value expression for the textrun 'C1.Paragraphs[0].TextRuns[0]' contains an error: [BC30205] End of statement expected.
    ----------------------------
    The definition of the report '' is invalid.
    ----------------------------
    An error occurred during local report processing.
  2. The Value expression for the textrun 'Date3.Paragraphs[0].TextRuns[0]' uses an aggregate expression with the recursive/simple flag. The recursive/simple flag is not allowed for First, Last, Previous, RowNumber, RunningValue and Aggregate.

    The definition of the report '' is invalid.

    Note: for this one I was prefacing each =Field expression with =First(Field....) and it gave me this recursive error. 

Questions: 

1. How can I get it to print out one page per Contract?

2. What if I add a second page to the template, will that cause an issue?

1 ACCEPTED SOLUTION
v-cgao-msft
Community Support
Community Support

Hi @navj ,


1. How can I get it to print out one page per Contract?
Solved: Re: Report with one page for each parameter value ...
Paginated report in PBI Report Builder - One page ...

2. What if I add a second page to the template, will that cause an issue?

Please check:
First function in a paginated report

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly -- How to provide sample data

View solution in original post

2 REPLIES 2
v-cgao-msft
Community Support
Community Support

Hi @navj ,


1. How can I get it to print out one page per Contract?
Solved: Re: Report with one page for each parameter value ...
Paginated report in PBI Report Builder - One page ...

2. What if I add a second page to the template, will that cause an issue?

Please check:
First function in a paginated report

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly -- How to provide sample data

Thanks, Gao. It worked. I put the fields into a list, re-added the fields with First in front, and now it is displaying properly. Much appreciated!

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.