Margot Robbie
Film

Year
Title
Role
Notes
2008
Vigilante
Cassandra
-
2009
I.C.U.
Tristan Waters
-
2013
About Time
Charlotte
-
2013
The Wolf of Wall Street
Naomi Lapaglia
-
2015
Z for Zachariah
Ann Burden
-
2015
Focus
Jess Barrett
-
2015
Suite Française
Celine
-
2015
The Big Short
Herself
Cameo
2016
Whiskey Tango Foxtrot
Tanya Vanderpoel
-
2016
The Legend of Tarzan
Jane Porter
-
2016
Suicide Squad
Harley Quinn
-
2017
Goodbye Christopher Robin
Daphne de Sélincourt
-
2017
I, Tonya
Tonya Harding
Also producer
2018
Peter Rabbit
Flopsy Rabbit (voice)
Also narrator
2018
Flopsy Turvy
Flopsy Rabbit (voice)
Short film
2018
Terminal
Annie/Bonnie
Also producer
2018
Slaughterhouse Rulez
Audrey
-
2018
Mary Queen of Scots
Queen Elizabeth I
-
2019
Dreamland
Allison Wells
Also producer
2019
Once Upon a Time in Hollywood
Sharon Tate
Post-production
2019
Fair and Balanced
Kayla Pospisil
Post-production
2020
Birds of Prey
Harley Quinn
Also producer; post-production
TBA
Promising Young Woman
—
Producer; filming

Question: In what film did Margot Robbie play Harley Quinn, and what year did that film come out?
Answer: In Suicide Squad, Robbie's third 2016 role was Harley Quinn.