powerpivotdaniel
New Member
- Joined
- Mar 1, 2013
- Messages
- 5
I have this DAX code that generates a visual table. It is a customer table that is crossjoin with a date table so I will be able to count the customerbase for each date. In the customer table there are only one line per customer with a fromdate and todate.
How can I perform a distinct count on date and if I use this as a measure will I be able to use this measure combined with other tables in a pivot table etc. the date table.
Hope it make sense.
EVALUATE
(
FILTER (
CROSSJOIN (
FILTER ( 'Customer', Customer[CompanyName] = "IT CLARITY" ),
VALUES ( 'Date'[date] )
),
Customer[ValidFrom] <= 'Date'[date]
&& Customer[Validto] >= 'Date'[date]
)
)
How can I perform a distinct count on date and if I use this as a measure will I be able to use this measure combined with other tables in a pivot table etc. the date table.
Hope it make sense.
EVALUATE
(
FILTER (
CROSSJOIN (
FILTER ( 'Customer', Customer[CompanyName] = "IT CLARITY" ),
VALUES ( 'Date'[date] )
),
Customer[ValidFrom] <= 'Date'[date]
&& Customer[Validto] >= 'Date'[date]
)
)