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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
JibinSebastian
Helper II
Helper II

Export Failure in Power BI Using Power Automate with Slicer-Based Campaign Selection

I have a table visual that includes columns sourced from multiple tables. There is also a slicer with three campaign names and a Power Automate button used for exporting the data.

I would like the exported file to include a column that reflects the selected campaign name from the slicer at the time of export. However, when I attempt to include this and trigger the export using the Power Automate button, the flow fails.

Could you please help identify why the export is failing and advise on the correct approach to include the selected campaign name in the exported output?

JibinSebastian_0-1771620410359.png

 

JibinSebastian_2-1771620440821.png

 

1 ACCEPTED SOLUTION
Olufemi7
Solution Sage
Solution Sage

Hello @JibinSebastian

The export is failing because the underlying dataset query is exceeding the Power BI query memory limit.

The error rsQueryMemoryLimitExceeded (2048 MB limit) indicates that when the Power Automate button triggers the export, Power BI executes a DAX query for the entire visual result set. Since your table visual pulls columns from multiple tables and you are attempting to dynamically include the selected Campaign from the slicer, the query becomes more complex and exceeds the per-query memory limit.


The error is generated by the Power BI engine, which enforces resource governance limits on dataset queries.

Recommended Approach

Instead of adding the selected Campaign as a column in the visual:

  1. Keep the slicer filtering the report normally.

  2. Pass the selected Campaign value to Power Automate as a parameter.

  3. In the flow, use Run a query against a dataset (or filter during export) using that parameter.

This avoids expanding the visual query and prevents the memory limit error.

If you must include it in the visual, use a simple measure:

Selected Campaign = SELECTEDVALUE('Campaign'[Campaign Name])

Also ensure:

  • Proper one-to-many relationships

  • No unnecessary high-cardinality columns

  • Avoid many-to-many or bi-directional filtering unless required

In summary, the failure is caused by the dataset query exceeding Power BI’s memory limits during export.

View solution in original post

5 REPLIES 5
V-yubandi-msft
Community Support
Community Support

Hi @JibinSebastian ,

@lbendlin & @Jai-Rathinavel, has correctly pointed out the issue and shared a few steps to follow. Have you tried those steps, and did they help? If you are still facing any issues or need additional information, please let us

 

Thanks for your valuable response @Olufemi7 , @lbendlin  .

 

Regards,

Yugandhar.

Olufemi7
Solution Sage
Solution Sage

Hello @JibinSebastian

The export is failing because the underlying dataset query is exceeding the Power BI query memory limit.

The error rsQueryMemoryLimitExceeded (2048 MB limit) indicates that when the Power Automate button triggers the export, Power BI executes a DAX query for the entire visual result set. Since your table visual pulls columns from multiple tables and you are attempting to dynamically include the selected Campaign from the slicer, the query becomes more complex and exceeds the per-query memory limit.


The error is generated by the Power BI engine, which enforces resource governance limits on dataset queries.

Recommended Approach

Instead of adding the selected Campaign as a column in the visual:

  1. Keep the slicer filtering the report normally.

  2. Pass the selected Campaign value to Power Automate as a parameter.

  3. In the flow, use Run a query against a dataset (or filter during export) using that parameter.

This avoids expanding the visual query and prevents the memory limit error.

If you must include it in the visual, use a simple measure:

Selected Campaign = SELECTEDVALUE('Campaign'[Campaign Name])

Also ensure:

  • Proper one-to-many relationships

  • No unnecessary high-cardinality columns

  • Avoid many-to-many or bi-directional filtering unless required

In summary, the failure is caused by the dataset query exceeding Power BI’s memory limits during export.

Thank you @Olufemi7 for helping me to resolve the issue. Appreciate your efforts and time

lbendlin
Super User
Super User

The best way to make sure the table visual and the Power Automate visual have identical behavior is to make them identical. Copy the table visual and change the visual type of the copy to Power Automate. Then, if you need to transport slicer selections over to Power Automate, add that column to the visual too.

 

Your issue lies elsewhere - likely you included columns in the Power Automate visual that come from unrelated tables and that then cause a cartesian product, resulting in memory starvation.  Re-check your data model.

Jai-Rathinavel
Super User
Super User

@JibinSebastian Try making the campaign name as a measure using below DAX and it to the table visual then try exporting it.

Campaign Name = SELECTEDVALUE(Table[Camp_Name])

 

Thanks,

Jai




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.