Forum Discussion
rob2
6 years agoFrequent Visitor
Power BI Tooltip & Measure Calculation
I am having an issue with creating a measure that shows up accurately in the tooltip. My measure "# of Scrapes Total" is showing 14 instead of 13. It should only show 13 because I have a slicer ...
- 6 years ago
Hi Rob,
The reason the total is showing up as 14 is because you're removing all the filter contexts except category, but including Competitor, in your measure. Result is the slicer selection won't have any effect
You could try something like this:
# of Scrapes Total = CALCULATE([# of Scrapes],ALL(CompData[Competitor]),CompData[Number_Competitor_Entries]>=3)Obviously you end up with a hard coded threshold in this case. Using a dynamic filter as described in this post would allow the report viewer to change the threshold.Cheers,Matt
mattneil
6 years agoFrequent Visitor
Hi Rob,
The reason the total is showing up as 14 is because you're removing all the filter contexts except category, but including Competitor, in your measure. Result is the slicer selection won't have any effect
You could try something like this:
# of Scrapes Total = CALCULATE([# of Scrapes],ALL(CompData[Competitor]),CompData[Number_Competitor_Entries]>=3)
Obviously you end up with a hard coded threshold in this case. Using a dynamic filter as described in this post would allow the report viewer to change the threshold.
Cheers,
Matt