Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowThe Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.
I have a master report with a few subreports. I want to run a subreport based on a parameter from the master report. Any idea how to do it?
Thanks
@v-zhangti If I just hide subreport it still runs. Even if I run its query conditionally based on a parameter some processing still takes place. That is confusing to users. Their expectation is that is they dont select reports to run nothing at all should be happening on the screen.
Hi, @Markzolotoy
To conditionally execute a subreport based on a parameter from the master report in a paginated report, you can use a visibility expression. Here's how:
This expression will hide the subreport if the parameter value is "True", and show it if the parameter value is anything else.
Note that if the subreport is not pulling data and not visible when the parameter value is "False", you may need to adjust the subreport's query or data source to handle this case. You could also consider using a default value for the parameter that ensures the subreport always runs, but only displays data when the parameter value is set appropriately.
Subreports in Power BI paginated reports - Power BI | Microsoft Learn
Add a subreport and parameters to a Power BI paginated report - Power BI | Microsoft Learn
Best Regards,
Community Support Team _Charlotte
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
What I actually meant is that in case not to run it the subreport is not pulling data and it's not visible. My data source is a PowerBI dataset.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
39 | |
37 | |
32 | |
25 | |
24 |
User | Count |
---|---|
37 | |
29 | |
23 | |
21 | |
17 |