Forum Discussion
Creating a measure based on a dimension table
- 6 years ago
Hey RafalK ,
next to the approach, az38 suggested you can create a measure like this:
measure= COUNTROWS( SUMMARIZE( 'Order' ,'Customer'[CustomerType] ) )As the country and the date table are filtering the order table, the virtual table created by SUMMARIZE contains the "distinct" CustomerTypes by Country/Month, the number of customer types can be counted using COUNTROWS.
Personally I tend to avoid using the cross filter direction "Both" as long as possible.
Hopefully, this provides another idea of how to tackle your challenge.
Regards,
Tom
Hey RafalK ,
next to the approach, az38 suggested you can create a measure like this:
measure=
COUNTROWS(
SUMMARIZE(
'Order'
,'Customer'[CustomerType]
)
)
As the country and the date table are filtering the order table, the virtual table created by SUMMARIZE contains the "distinct" CustomerTypes by Country/Month, the number of customer types can be counted using COUNTROWS.
Personally I tend to avoid using the cross filter direction "Both" as long as possible.
Hopefully, this provides another idea of how to tackle your challenge.
Regards,
Tom
Thanks,
This one works with some modifications: