I've been reading some other questions regarding this topic, I know they are a lot of them. Yet still, I haven't found a solution to my specific problem.

I have multiple chapters of my thesis, I would like a bibliography per chapter, which is easy using refsection. But I also want a global bibliography, which then users suggest the refsegment way. 

The problem with the refsegment is that numbering now is not unique to each chapter, but is a set to a the global reference list as mentioned in the biblatex documentation.

Thus I also read on other questions the suggestion of using the defernumbers option to *true* which I did, and the reference numbering goes to hell, similar problem like ([Biblatex: problem with defernumbers](https://tex.stackexchange.com/questions/163611/biblatex-problem-with-defernumbers)), even after compiling multiple times and deleting the aux, bbl, etc files.

My best effort has been to create a refsection per chapter and then another refsection for the global bibliography with the \nocite{\*}, but then the backref is not working properly.

I also tried refsegments for each chapter nested into a overall refsection for the whole document which is a possibility in the biblatex documentation, but then the citations number are linked to the final bibliography and not the local subbibliographies.

Thus what I'm looking for is something like:

Chapter 1
Foo said [1] and blabla said [2]
Bibliography
[1] Foo (cited on page XXX).
[2] Blabla (cited on page XXX).

Chapter 2
Foo said [1] and asd said [2]
Bibliography
[1] Foo (cited on page XXX)
[2] Asd (cited on page XXX)

and then a Global bibliography in alphabetic order (nyt):
Asd (cited on page XXX)
Blabla (cited on page XXX)
Foo (cited on page XXX)

So I've done two attemps, one with refsections that works well but the cited on XXX in the global bibliography does not work:

```
\documentclass[11pt, a4paper, showtrims]{memoir}

\usepackage[backend=biber, bibstyle=numeric-comp, citestyle=numeric-comp, backref=true]{biblatex}

\defbibenvironment{nolabelbib}
{\list
    {}
    {\setlength{\leftmargin}{\bibhang}%
        \setlength{\itemindent}{-\leftmargin}%
        \setlength{\itemsep}{\bibitemsep}%
        \setlength{\parsep}{\bibparsep}}}
{\endlist}
{\item}

\usepackage{filecontents}

\begin{filecontents}{\jobname.bib}
    @misc{A01,
        keywords = {foo,bar},
        author = {Author, A.},
        year = {2001},
        title = {Alpha},
    }
    @misc{B02x,
        keywords = {foo},
        author = {Buthor, B.},
        year = {2002},
        title = {Bravo},
    }
    @misc{B02y,
        keywords = {bar},
        author = {Buthor, B.},
        year = {2002},
        title = {Bravissimo},
    }
\end{filecontents}

\addbibresource{\jobname.bib}

\begin{document}

    \chapter{Chapter 1}
    \begin{refsection}
        This guy said blabla \autocite{A01}. And this other guy said blabla \autocite{B02x}.
        \printbibliography[heading=subbibliography]
    \end{refsection}

    \chapter{Chapter 2}
    \begin{refsection}
        This guy said blabla \autocite{A01}. And this other guy said blabla \autocite{B02y}.
        \printbibliography[heading=subbibliography]
    \end{refsection}

    \begin{refsection}
        \nocite{*}
        \newrefcontext[sorting=nyt]
        \printbibliography[env=nolabelbib]
    \end{refsection}

\end{document}

```

The other thing I've tried is with the refsegment nested into a refsection, please note I just copied from the \begin{document}:

```
\begin{document}
    \begin{refsection}

        \chapter{Chapter 1}
            \begin{refsegment}
                This guy said blabla \autocite{A01}. And this other guy said blabla \autocite{B02x}.
                \printbibliography[segment=\therefsegment,heading=subbibliography]
            \end{refsegment}

        \chapter{Chapter 2}
            \begin{refsegment}
                This guy said blabla \autocite{A01}. And this other guy said blabla \autocite{B02y}.
                \printbibliography[segment=\therefsegment,heading=subbibliography]
            \end{refsegment}

        \newrefcontext[sorting=nyt]
        \printbibliography[env=nolabelbib]

    \end{refsection}

\end{document}

```

In this last example, the cited on XXX works well, but the problem is that the numbering is linked to the global bibliography (that is arranged in alphabetic order) and not to the local chapter bibliographies. I also tried to turn on the defernumbers to true, and the numbering goes crazy. Also set the resetnumbers option to true in printbibliography and didn't fix the problem.

Im running MiKTeX-pdfTeX 2.9.6642 (1.40.19) (MiKTeX 2.9.6630 64-bit)
Biber version 2.11, and according to MikTex Console I have the 3.12 of Biblatex

Thanks for all the help!