When you want to filter the table data based upon the selected value in prompt
For example ,I have a table called SRC_ORDER_LINES it will show Sales amount and Order quantity based on order_id.My requirement is in dashboard i want to filter whole table data based on the VALUE(Order quantity) selected in Prompt
1) Create a session variable initialization block with following query
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj5dz2qkQOOAIKe9SyS9c_jBCifSrfBn0HYEd3l4uKUoQRyVC9UOSwhK4mHVoyTF40dambLGfAGzSbXPNP-XpF_RItMSyZcXoo6p0gd_HfDEUngE6pkyRJcHZlDG14es8Tk2nACSgIcA9A/s200/Pic+%23087.png)
For example ,I have a table called SRC_ORDER_LINES it will show Sales amount and Order quantity based on order_id.My requirement is in dashboard i want to filter whole table data based on the VALUE(Order quantity) selected in Prompt
1) Create a session variable initialization block with following query
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj5dz2qkQOOAIKe9SyS9c_jBCifSrfBn0HYEd3l4uKUoQRyVC9UOSwhK4mHVoyTF40dambLGfAGzSbXPNP-XpF_RItMSyZcXoo6p0gd_HfDEUngE6pkyRJcHZlDG14es8Tk2nACSgIcA9A/s200/Pic+%23087.png)
4) We need to add this session variable to the "BMM layer Content Level Filter" in order to filter the table
5) Double click on LTS(Logical Table Source) of SRC_ORDER_LINES click on content tab we need to give the condition under "Using where condition to filter out row counts"
5) Double click on LTS(Logical Table Source) of SRC_ORDER_LINES click on content tab we need to give the condition under "Using where condition to filter out row counts"