If the data was within a defined Table and you were happy for the trigger to be when a file is created (copy the master file into a processing folder for instance), then you could do the following.
For this example, my master file contains a Table with the following data.

See full flow below. I'll go into each of the actions.

When a file is created (properties only) will trigger when we create a new file in the Master Excel Tables folder. You could also configure the trigger to be for a selected file as another option.

List rows present in a table will retrieve the rows from our Table. Note that this will only return the first 256 rows by default, so I've set the Top Count to 5000 (will retrieve up to 5000 items).

Select extracts out all the Departments into a simple array.

Apply to each department iterates over each unique Department. Note that I'm using the union expression to remove any duplicate Departments.
union(body('Select'), body('Select'))

Filter array filters out the rows for the current Department we are iterating over.

Create worksheet creates a new worksheet using the Department name.

Create table uses the Name of the worksheet we just created followed by !A1C1 for the range (3 columns). It also uses an expression to replace any spaces in the Department name for use as the Table name.
//Table range
@{outputs('Create_worksheet')?['body/name']}!A1:C1
//Table name
replace(outputs('Create_worksheet')?['body/name'], ' ', '')

Apply to each row uses the output from Filter array so it iterates over each row for the current Department.

Add a row into a table adds each of the rows into the Department Table. It uses the following expression to get the row data into the correct structure.
{
"Department": @{items('Apply_to_each_row')?['Department']},
"Month": @{items('Apply_to_each_row')?['Month']},
"Revenue": @{items('Apply_to_each_row')?['Revenue']}
}

After running the flow, we should have a new worksheet for each Department with the relevant data.
