ChatGPT helped me to create a complex function for my SwiftUI app that uses FetchRequest from Coredata ..group into multidimensional array then sort/filter for last 7 days so I can display using Charts API.