Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi guys,
There are a table with many category
I want count the category "Acesso lento" in "Primeiro_contato_sucess for example.
And count the same category in table "Atendimentos"
Manually it´s like
calculate(count(primeiro_contato_sucess[categoria],
filter(Primeiro_contato_sucesso, [categoria] = "Acesso lento")
/
calculate(count(Atendimentos[categoria],
filter(Atendimentos, [categoria] = "Acesso lento")
But have many category, it´s many work do this time for all
Solved! Go to Solution.
Hi @Anonymous ,
I have built a data sample, please try the following formula to create a measure in Primeiro_contato_sucesso Table:
Measure =
var _countInPrim=CALCULATE(COUNTROWS('Primeiro_contato_sucesso'),FILTER('Primeiro_contato_sucesso',[categoria]=MAX('Primeiro_contato_sucesso'[categoria])))
var _countInAten=CALCULATE(COUNTROWS('Atendimentos'),FILTER('Atendimentos',[categoria]=MAX('Primeiro_contato_sucesso'[categoria])))
return DIVIDE(_countInPrim,_countInAten)
Output:
Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous ,
I have built a data sample, please try the following formula to create a measure in Primeiro_contato_sucesso Table:
Measure =
var _countInPrim=CALCULATE(COUNTROWS('Primeiro_contato_sucesso'),FILTER('Primeiro_contato_sucesso',[categoria]=MAX('Primeiro_contato_sucesso'[categoria])))
var _countInAten=CALCULATE(COUNTROWS('Atendimentos'),FILTER('Atendimentos',[categoria]=MAX('Primeiro_contato_sucesso'[categoria])))
return DIVIDE(_countInPrim,_countInAten)
Output:
Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
109 | |
98 | |
77 | |
66 | |
54 |
User | Count |
---|---|
144 | |
104 | |
100 | |
86 | |
64 |