[GIS] How to export Point-shape coordinates to csv (X,Y)

coordinatescsvexportqgis

I am trying to export point coordinates from a shapefile to a CSV file. I managed to create this:

enter image description here

but I need the output to look like this:

enter image description here

I tried different options with save as… and with the MMQgis-plugin, None of them worked.

Does anyone know how to export the file to make it look like the example I gave?

Best Answer

In the save as dialog you will see a drop down labelled geometry which let's you choose x, y instead of wkt.

enter image description here