Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!View all the Fabric Data Days sessions on demand. View schedule
Olá,
Estou tentando calcular quantar vezes o produto foi separado para identificar o esforço da logistica, para isso preciso calcular quantos itens distintos da coluna @NFprod da tabela virtual vNFprod. Porém a fórmula DISTINCTCOUNT retorna erro quando uso essa coluna.
Pode me ajudar?
Obrigada!
Solved! Go to Solution.
Hi @Daniela_Romasko
Please try
NFprod =
VAR uNFprod =
ADDCOLUMNS (
ALLSELECTED ( TB_FATORAMENTO[N NOTA], TB_FATORAMENTO[CODIGO PRODUCTO] ),
"@NFprod",
[N NOTA] & "|" & [CODIGO PRODUCTO]
)
RETURN
COUNTROWS ( GROUPBY ( uNFprod, [@NFprod] ) )
Hi @Daniela_Romasko
Please try
NFprod =
VAR uNFprod =
ADDCOLUMNS (
ALLSELECTED ( TB_FATORAMENTO[N NOTA], TB_FATORAMENTO[CODIGO PRODUCTO] ),
"@NFprod",
[N NOTA] & "|" & [CODIGO PRODUCTO]
)
RETURN
COUNTROWS ( GROUPBY ( uNFprod, [@NFprod] ) )
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 13 | |
| 9 | |
| 8 | |
| 5 | |
| 3 |
| User | Count |
|---|---|
| 28 | |
| 21 | |
| 20 | |
| 19 | |
| 12 |