data
|> Enum.filter(&match?({_, v} when v > 0, &1))
|> Enum.map(fn
{"a", _} -> "text1"
{"b", _} -> "text2"
{"c", _} -> "text3"
end)
data
|> Enum.filter(&match?({_, v} when v > 0, &1))
|> Enum.map(fn
{"a", _} -> "text1"
{"b", _} -> "text2"
{"c", _} -> "text3"
end)