Data Model Editor - Use of filter in front end in calculation
Hi,
In Data Model Editor i need to make a measure which is based on what the user has chosen in a filter in Targit Front end.
In DAX the measure works as follows
I find the min and max of the date-filter, which is made by the user in the front end analysis
VAR _MinDate = MIN ( 'Dato'[Dato] )
VAR _MaxDate = MAX ( 'Dato'[Dato] )
Afterwards i need to use the _MinDate and _MaxDate in a measure using a dimension as filter.
CALCULATE ( DISTINCTCOUNT ('A'[B]), 'C'[Date] >= _MinDate && 'C'[Dato] <= _MaxDate )
How do i do that in Data Model Editor?
Regards Line
Comments
5 comments