Let's say in Power BI I have the following set up:
d_date (this is a date dimension)
d_customers (this is a customer dimension)
f_orders (this is a fact table)
f_orders
connects to d_date
on date_id
and connects to d_customers
on customer_id
.
I want to create a dax measure that shows the list of distinct customers, along with their name, for each date.
How could I do so?
(I am a novice at Dax and somewhat new to Power BI)
Expected output
Table 1
order date Customer Name
2020-01-01 John Doe
2020-01-01 James Simpson
2020-01-03 Emilia Clarke
...
2020-12-31 Jamie Lanister
Table 2
order date distinct_customer_count
2020-01-01 2
2020-01-03 1
...
2020-12-31 1
My goal is not so much to produce the output as to see a simple example of using DAX to produce output from 2 tables.