Welcome to the forum.

This should help you to do what you want: https://exceleratorbi.com.au/self-re...s-power-query/