how to get the sum of qty , and amount by given range in ssrs reports

sir above requirement same by using X++ query in rdp class.with validations. how write the logic and send me code

Not sure what does that mean? Please create a new thread.