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

A new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.

Reply
Ayyappa5678
Helper III
Helper III

Two Parameters are required in Paginated Report, pls help

Hi Team,
I am new to paginated report develop using report builder.
Here my data source is azure databricks, and my query is
I need to create 2 parameters like track_id and barcode_id, If user enter track_id values or barcode values then data will shown in table visual, user will enter either few track_id or few barcode_values. Then results shown in table visual.
I have done below workout,

Azure databricks-> Power Query -> created 2 paramters in power query -> Making as List Type with passing any values for both parameters -> and same calling on the filter of IN and OR selected

Paginated -> Parameter -> created 2 paramters -> Same selected allow multi values 

Dataset properties -> calling created track_id paramter as value.

But in result I am getting exact values for track_id parameter, but barcode parameter did not works.
How we need to create 2 paramters in paginated reports?
Like user will enter track_id or barcode_id, it means for suppose few track_id shown blank so user will search with barcode parameter.
Kindly help me with this.

2 ACCEPTED SOLUTIONS
DanieleUgoCopp
Solution Supplier
Solution Supplier

hello,

I think the fix is to handle null or empty parameters in your WHERE clause, so one can work when the other is not filled.

Try adjusting your query logic to something like “(track_id IN (@track_id) OR @track_id IS NULL) AND (barcode_id IN (@barcode_id) OR @barcode_id IS NULL)”, or similar depending on Databricks syntax, the idea is to not force both filters at the same time, also double check that both parameters are actually passed to the dataset, not just one mapped.

 

Best regards,
Daniele

View solution in original post

v-abhinavmu
Community Support
Community Support

Hi @Ayyappa5678,
Thanks for reaching out to the Microsoft Fabric Community forum.

 

I tried to reproduce a similar scenario and noticed that this behavior can sometimes occur depending on how the parameters are handled in the query. Since the requirement is to filter using either track_id or barcode_id, you might try adjusting the query to allow one parameter to work even if the other is not provided.

For example, you could try something like:

 

(@track_id IS NULL OR track_id IN (@track_id))
OR
(@barcode_id IS NULL OR barcode_id IN (@barcode_id))

 

And also check parameter settings, Right click --> parameter properties --> Allow Null/Blank values, do this for both id's.

 

vabhinavmu_0-1777544696837.jpeg

 

Run the report with different inputs,

 

vabhinavmu_1-1777544733448.jpeg

 

vabhinavmu_2-1777544733450.jpeg

 

 

This approach might help in scenarios where users provide only one of the parameters. Please give it a try and let me know if it works in your case.

Thank you!

View solution in original post

4 REPLIES 4
v-abhinavmu
Community Support
Community Support

Hi @Ayyappa5678,

May I check if this issue has been resolved? If not, Please feel free to contact us if you have any further questions.


Thank you

v-abhinavmu
Community Support
Community Support

Hi @Ayyappa5678,

I wanted to check if you had the opportunity to review the information provided. Please feel free to contact us if you have any further questions. 


Thank you.

v-abhinavmu
Community Support
Community Support

Hi @Ayyappa5678,
Thanks for reaching out to the Microsoft Fabric Community forum.

 

I tried to reproduce a similar scenario and noticed that this behavior can sometimes occur depending on how the parameters are handled in the query. Since the requirement is to filter using either track_id or barcode_id, you might try adjusting the query to allow one parameter to work even if the other is not provided.

For example, you could try something like:

 

(@track_id IS NULL OR track_id IN (@track_id))
OR
(@barcode_id IS NULL OR barcode_id IN (@barcode_id))

 

And also check parameter settings, Right click --> parameter properties --> Allow Null/Blank values, do this for both id's.

 

vabhinavmu_0-1777544696837.jpeg

 

Run the report with different inputs,

 

vabhinavmu_1-1777544733448.jpeg

 

vabhinavmu_2-1777544733450.jpeg

 

 

This approach might help in scenarios where users provide only one of the parameters. Please give it a try and let me know if it works in your case.

Thank you!

DanieleUgoCopp
Solution Supplier
Solution Supplier

hello,

I think the fix is to handle null or empty parameters in your WHERE clause, so one can work when the other is not filled.

Try adjusting your query logic to something like “(track_id IN (@track_id) OR @track_id IS NULL) AND (barcode_id IN (@barcode_id) OR @barcode_id IS NULL)”, or similar depending on Databricks syntax, the idea is to not force both filters at the same time, also double check that both parameters are actually passed to the dataset, not just one mapped.

 

Best regards,
Daniele

Helpful resources

Announcements
May Power BI Update Carousel

Power BI Monthly Update - May 2026

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

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

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.