Forum Discussion
KeithChu
Helper I
8 years agoWhy measure cannot be filtered?
Dear all, I have created a "Gross Profit %" measure that simply divide gross profit by cost. Then I would like to filter out all rows that has "GP%" > x% during year 2017. However the "GP% measur...
- 8 years ago
KeithChu would using the visual level filters work for you?
JoHo_BI
Responsive Resident
8 years agoHi Keith,
To filter by a measure, you need to use the FILTER function, so yours will look roughly like the following:
Measure = CALCULATE([Gross Profit] / [Cost], FILTER(TABLE_NAME, [GP%] > x))
Hope that helps!