The ornamental design for display screen or portion thereof with a graphicaluserinterface, as shown and described.
The sole FIGURE is a front view of a display screen or portion thereof with a graphical user interface showing our new design.
The outermost broken line rectangle illustrates a display screen or portion thereof and forms no part of the claimed design. The remaining broken lines and the dots connecting text features illustrate portions of the graphical user interface and form no part of the claimed design.