Resolving the data ambiguity for periodic crystals