>> Download the sample (Power BI)
This sample shows the total number of unique customers sold to over time.
Dashboard - Snippet
Section titled “Dashboard - Snippet”
Data Model - Snippet
Section titled “Data Model - Snippet”
Measures - Customers
Section titled “Measures - Customers”Unique Count of Customers
Section titled “Unique Count of Customers”Unique Count of Customers =DISTINCTCOUNT ( Sales_Table[Customer] )Tables
Section titled “Tables”Calendar_Table
Section titled “Calendar_Table”Calendar_Table =GENERATE ( CALENDAR ( DATE ( 2017, 1, 1 ), DATE ( 2019, 12, 31 ) ), VAR currentDay = [Date] VAR Day = DAY ( currentDay ) VAR Month = MONTH ( currentDay ) VAR Year = YEAR ( currentDay ) RETURN ROW ( "Day", day, "Month", month, "Year", year ))