Forum Discussion
LeandroCampacci
5 years agoHelper I
Replicate rowset for each unique value in a table
Olá, pessoal! Estou com um problema aqui e não sei qual a melhor solução. Tenho duas tabelas simples:
Uma, com apenas uma coluna, trazendo uma lista de 1736 nomes.
A outra tabela tem datas e códigos de uma campanha de marketing.
O que eu quero é que, para cada data e código, essa lista de 1736 nomes seja replicada. Por exemplo:
Na data 01/01/21, código 1, eu terei 1736 nomes. Na data 02/01/21, código 2, eu terei novamente esses 1736 nomes.
----
Hello guys! I have a problem here and I don't know what the best solution is. I have two simple tables:
One, with only one column, with a list of 1736 names.
The other table has dates and codes for a marketing campaign.
What I want is that, for each date and code, that list of 1736 names be replicated. For example:
On 01/01/21, code 1, I will have 1736 names. On 02/01/21, code 2, I will have those 1736 names again.
https://i.imgur.com/W2RlaDR.png
2 Replies
- smpa01Community Champion
LeandroCampacciplease try the attached pbix
https://drive.google.com/file/d/1h_-bY5W-4-GcyCkILOrcOl6wqBFCzCZT/view?usp=sharing
- LeandroCampacciHelper I
Thanks smpa01. Exactly that I need.
Thanks for the solution, it will certainly help me with other projects.