Forum Discussion
Visual Level Filter ignored by Measure
Hi,
Try this measure
=COUNTROWS(FILTER(SUMMARIZE(DateData,DateData[Date],"ABCD",DISTINCTCOUNT(Contracts[Customer])),[ABCD]>2))
This measure will count all dates on which more than 2 customers were lost. The answer will be one because of all the dates, only on 3 January 2017 did you lost 3 customers. On the others dates, you only lost one customer each.
The value of 2 which has been hard coded can come via a slicer selection. But before i do that i just wanted to know if my inderstanding of the problem is correct. If not, then paste your data and show your expected result.
You may download the file from here.
Will this work?
Yes, that is close, but the 2 needs to come from a visual level filter, or when the visual level filtered is altered, then it needs to impact the total in the measure.
- Ashish_Mathur8 years agoSuper User
Hi,
Download the file now.
- Anonymous8 years agoNot applicable
The slicer works - as per my earlier post, slicers on the page work fine. Go to the visual level filters (under the visualizations tab) on the Contracts matrix. Select some of the dates. The Measure still does not change.
- Ashish_Mathur8 years agoSuper User
Hi,
I selected the card visual and then dragged the Date column from the DateDue table to the Visual level filter section. When i select a date there, the measure responds just fine.