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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Pavan_123456789
Helper II
Helper II

Assistance with Setting Default Parameter to "All" in Paginated Reports

I am currently working with multiple text parameters (such as Country, Customer, and Category) in a paginated report and would like to set "All" as the default selection for these parameters. Could you please confirm if it's possible to configure this in the report? Additionally, any guidance or steps you could provide would be greatly appreciated.

Thank you for your support. I look forward to your response.

7 REPLIES 7
v-xuxinyi-msft
Community Support
Community Support

Hi @Pavan_123456789 

 

The following testing is for your reference.

 

My data source is SQL Server and then I configured two parameters.

vxuxinyimsft_4-1727673550855.png

 

vxuxinyimsft_5-1727673583895.png

 

1. Configure each of them as shown below.

vxuxinyimsft_1-1727673223491.png

 

vxuxinyimsft_2-1727673254259.png

 

vxuxinyimsft_3-1727673333217.png

 

The Customer parameter is configured the same way.

vxuxinyimsft_6-1727673937936.png

 

vxuxinyimsft_7-1727673963142.png

 

vxuxinyimsft_8-1727673974005.png

 

Output:

vxuxinyimsft_9-1727674156785.png

 

Best Regards,
Yulia Xu

 

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

Hi @v-xuxinyi-msft ,

Thank you for your previous response. I followed the steps you outlined, and they were very helpful. However, I encountered one issue:

When no customer is selected, it defaults to "ALL" as expected. But when I select a particular customer, the data still reflects all customers rather than the selected one. It seems that the filter for specific customer data is not being applied.

Could you please assist me in resolving this issue?

 

Hi @Pavan_123456789 

 

The following test is for your reference:

 

Extract the corresponding fields of the parameters as separate datasets.

vxuxinyimsft_0-1728029708254.png

 

vxuxinyimsft_1-1728029757037.png

 

vxuxinyimsft_2-1728029809700.png

 

Create corresponding parameters, allowing multiple selections for the parameters, and their available values ​​(Available Values) and default values ​​(Default Values) come from the corresponding dataset.

vxuxinyimsft_13-1728030847346.png

 

vxuxinyimsft_3-1728029830731.png

 

vxuxinyimsft_4-1728029850859.png

 

vxuxinyimsft_5-1728030272678.png

 

vxuxinyimsft_6-1728030285449.png

 

vxuxinyimsft_7-1728030307545.png

 

Create a filter for the Dataset containing all fields.

vxuxinyimsft_8-1728030357407.png

 

vxuxinyimsft_10-1728030399365.png

 

vxuxinyimsft_11-1728030446480.png

 

It should be noted here that in my test, when I select the value of parameter, it will display "=Parameters!Country.Value(0)" by default. The 0 in the brackets represents the first data in the table. If it is in this format, then the report will only display the first data even if all parameters are selected, so we need to remove the brackets so that all the data can be displayed.

vxuxinyimsft_12-1728030724637.png

 

Output:

vxuxinyimsft_14-1728030914199.png

 

vxuxinyimsft_15-1728030939533.png

 

Best Regards,
Yulia Xu

 

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

Hi @v-xuxinyi-msft ,
Thank you for your response.
Could you please clarify how you used the following SQL query?

SELECT test_Default_Paginated.Customer
FROM test_Default_Paginated
Is this taken from SQL Query?If yes what steps i need to  follow?

Hi @Pavan_123456789 

 

The SQL statement I used is just to make the value of the column as parameter come from a separate dataset. The column is extracted from the data source table to make it a separate dataset.

vxuxinyimsft_2-1728270465282.png

 

In my test, the data source I used is SQL Server. The following is the data table I used.

vxuxinyimsft_0-1728269713438.png

 

You just need to make the value of the column used as a parameter come from a separate dataset instead of the same dataset as the one that needs to be filtered.

 

If the value of the parameter is not a separate dataset, the following error will be reported when running this report.

vxuxinyimsft_1-1728269800105.png

 

Best Regards,
Yulia Xu

 

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

Hi @v-xuxinyi-msft 

Could please let me know where to create the sql Query?Is it created in Sql or have you created directly in Paginated Reports ?

Hi @Pavan_123456789 

 

I created it directly in the paginated report.

 

1. add dataset

vxuxinyimsft_0-1728463962941.png

 

2. Use the above SQL statement in Query

vxuxinyimsft_1-1728463990564.png

 

Best Regards,
Yulia Xu

 

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!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.