Coding Challenge: Pack Your Macro
Explore how to incorporate a macro into a dbt package to perform distinct counts. Learn to import the macro into a project and build a model using the macro to calculate daily distinct product counts, improving your dbt package management and macro usability.
We'll cover the following...
We'll cover the following...
Problem
Here’s a macro that groups by a column and counts distinct values of a field:
As this macro is ...