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

The 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.

Reply
Lakshmanan1
Frequent Visitor

What is the method to display two distinct report templates depending on the chosen parameters

What method is to display two distinct report templates depending on the parameters in a paginated report?

At the report parameter level, there will be a parameter called 'select student'. By default, the first option in this parameter will be 'ALL', and the rest of the options will be a list of student names.

1. The default selection for the Student option will be 'ALL', and in this scenario, a comprehensive aggregated data template containing the batch number, class strength, and list of all student names will be shown.

2. When a specific student is selected in the Paramter option, a different template displaying the details of the chosen student will be presented.

How do we achieve this in the Paginated report under-report builder?

 

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

Hi, @Lakshmanan1 

Based on your description, I've used the following sample data:

vjianpengmsft_0-1724208048621.png

I created a parameter in Report Builder with all the customer names and ALL options:

vjianpengmsft_1-1724208114930.png

At the same time, I created two template tables:

vjianpengmsft_2-1724208183752.png

Open the Properties toolbar, select the entire table and find the Visibility option:

vjianpengmsft_3-1724208341342.png

=Parameters!Name.Value<>"ALL"

vjianpengmsft_4-1724208377256.png

When I select a specific student for the entire parameter, this table is hidden, and another table is displayed:

vjianpengmsft_5-1724208532818.png

I'm using a SQL Server source, and I don't have the ALL student in my data source, so I modified my SQL query to show all the data when ALL is selected:

vjianpengmsft_6-1724208651086.png

Here are the results:

vjianpengmsft_7-1724208710475.png

vjianpengmsft_8-1724208750412.png

 

 

Best Regards

Jianpeng Li

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

 

 

 

 

 

 

 

 

View solution in original post

2 REPLIES 2
Lakshmanan1
Frequent Visitor

Thank you @v-jianpeng-msft . Your solution works for me. 

v-jianpeng-msft
Community Support
Community Support

Hi, @Lakshmanan1 

Based on your description, I've used the following sample data:

vjianpengmsft_0-1724208048621.png

I created a parameter in Report Builder with all the customer names and ALL options:

vjianpengmsft_1-1724208114930.png

At the same time, I created two template tables:

vjianpengmsft_2-1724208183752.png

Open the Properties toolbar, select the entire table and find the Visibility option:

vjianpengmsft_3-1724208341342.png

=Parameters!Name.Value<>"ALL"

vjianpengmsft_4-1724208377256.png

When I select a specific student for the entire parameter, this table is hidden, and another table is displayed:

vjianpengmsft_5-1724208532818.png

I'm using a SQL Server source, and I don't have the ALL student in my data source, so I modified my SQL query to show all the data when ALL is selected:

vjianpengmsft_6-1724208651086.png

Here are the results:

vjianpengmsft_7-1724208710475.png

vjianpengmsft_8-1724208750412.png

 

 

Best Regards

Jianpeng Li

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

 

 

 

 

 

 

 

 

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

Check out the February 2025 Power BI update to learn about new features.

Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Feb2025 NL Carousel

Fabric Community Update - February 2025

Find out what's new and trending in the Fabric community.