If you've found a solution, I suggest posting it as an answer here, but just for fun, this is how I would approach this:
  
  
  
  
    
      
    
  
  
    
      
    
  
  
    
      
    
  
When run with "Price" as the parameter value:
  | $10 | 
  $20 | 
When run with "Name" as the parameter value:
  | Premium Copier paper | 
  Extra Copier paper |