Forum Discussion
Measure not filtering as expected
Dear all,
I need to calculate the amount of repeated incidents per category and the incidents need to have a standard solution. I used the following formula to calculate it (I have blanked out the table names):
Thanks for your help! I altered your measure a little bit, and it works!
This is the measure I ended up using:
KPI = CALCULATE(( COUNT(Table[Brief Description (Details)])), FILTER(Table,[Standard solution] = "Yes" ) )
4 Replies
- v-yuta-msft
Community Support
Sharu ,
This issue may caused by one filter is affected by other filters in other visuals. To be general, you may modify measure like pattern below and check if the issue persists.
KPI = COUNTROWS ( FILTER ( ALL ( Table ), [Brief Description (Details)] = EARLIER ( [Brief Description (Details)] ) && [Standard solution] = "Yes" ) )Community Support Team _ Jimmy Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- SharuFrequent Visitor
Thanks for your reply! I created a new blank Power BI file and created this visual again while using your measure, but unfortunately I got the same result as before. Is there any other way to calculate the amount of repeating values?
Sharu
- v-yuta-msft
Community Support
Sharu ,
How about measure below?
KPI =
CALCULATE (
COUNT ( Table[Brief Description (Details)] ),
FILTER (
ALLEXCEPT ( Table, Table[Brief Description (Details)] ),
Table[Standard solution] = "Yes"
)
)Community Support Team _ Jimmy Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.