how to hide view block when other view block not giving any search result?
For such cases, when visiblity of one view need to be dependent on another view, we may alter the view, or we can use hook_views_pre_render or hook_views_pre_render to control the view through custom code.

Here as you are using block, so you can also use block configuration "Show block on specific pages" instead of coding in some custom module.

Then you can select option "Pages on which this PHP code returns TRUE" there.

After doing so, you can use the following code in the textarea:

&lt;?php

$view = "&lt;Your dependee view's machine name on which other view is dependent&gt;";

$display = "&lt;Your dependee view's display ID&gt;";

$all_row = views_get_view_result($view, $display);

if(count($all_row)&gt;0) {
  return TRUE;
}
?&gt;