Changed prerows query and relevant query in salesAnalytics