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!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
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 |
|---|---|
| 11 | |
| 9 | |
| 9 | |
| 6 | |
| 5 |
| User | Count |
|---|---|
| 27 | |
| 22 | |
| 19 | |
| 17 | |
| 11 |