Base on your question and your comments, I will assume this is the right answer.
The best way to do this is by creating two different views. One for the .com and another one for the .com.au.
how to add a new view
Once you have created both views, you need to create a filter for each view specifying the hostname.
Use a predefined filter to Include only traffic to a particular hostname (in this case, as example.com or example.com.au)
Check step 2 here
In the above example they use a sub domain, replace that with your domain.
NOTE: you will need to wait up to 48 hrs to start seeing the data flowing separately in each view. Also, the data in the views will be recorded moving forward, you will not be able to see past data.
NOTE: in case you need to see past data in the “merged” view create two segments applying the same hostname filter approach for segments. There are plenty of online sources that you can follow.