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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Sri123nath
New Member

Slicer value to hit back the DB2 StoredProcedure and sliced value should be populated as dataset

Hi Everyone,

Please find my below requirement and it will be of great help if some one can provide an idea on how to execute  it.

 

Datasource : DB2 Database

Query to be used for Data Visualization : DB2 Stored procedures which will return around 3 to 5 million records as result

Report Design : 5 to 10 slicers at the top and based on selection of Slicer , the table visual to be populated in the same page of the report.

 

End user to select the 5 to 10 slicers and based on the selection , slicer values combinations should filter against the DB2 Stored procedure records ( i.e lets say total stored procedure record is 3 million records and  lets assume the selection of slicer value is  500 records. this 500 records will be filtered against the 3 million records and that should be the dataset for the report). 

Stored procedure in this scenario is Import Mode ( as Direct query not supporting for my ODBC).

 

Is there any work around to achieve this requirement.

 

 

 

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Sri123nath ,

 

You could use values() function to catch the values in slicers.

VALUES function (DAX) - DAX | Microsoft Learn

Create a measure like:

measure = IF(selectedvalue([column1]) in values([slicer1])&&selectedvalue([column2]) in values([slicer2])&&selectedvalue([column3]) in values([slicer3])&&...etc,1,0)

Then add this measure to visual filter and set value = 1.

 

Best Regards,

Jay

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @Sri123nath ,

 

You could use values() function to catch the values in slicers.

VALUES function (DAX) - DAX | Microsoft Learn

Create a measure like:

measure = IF(selectedvalue([column1]) in values([slicer1])&&selectedvalue([column2]) in values([slicer2])&&selectedvalue([column3]) in values([slicer3])&&...etc,1,0)

Then add this measure to visual filter and set value = 1.

 

Best Regards,

Jay

Many Thanks, Will try to incorporate this solution 

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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