- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Cómo contar el recuento distinto de una columna
Hola a todos, me gustaría contar cuántas veces el valor distintivo de "Producto">1. ¿Alguien podría aconsejar cómo agregar esta medida? En este caso, Producto A, B, C, estos 3 productos se producen más de 1, por lo que la anwer debe ser 3
Id | Producto |
1 | A |
2 | B |
3 | C |
4 | A |
5 | A |
6 | B |
7 | D |
8 | E |
9 | F |
10 | C |
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Quizás:
Measure =
VAR __Table =
SUMMARIZE(
'Table',
[Product],
"__Count",COUNTROWS('Table')
)
RETURN
COUNTROWS(FILTER(__Table,[__Count]>1))
Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!: Power BI Cookbook Third Edition (Color)
DAX is easy, CALCULATE makes DAX hard...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Hola
Escribir estas medidas
Total price = SUM(Data[Net Price])
Measure = SUMX(FILTER(SUMMARIZE(VALUES(Data[Product]),Data[Product],"ABCD",COUNTROWS(Data),"EFGH",[Total price]),[ABCD]>1),[EFGH])
Arrastre la segunda medida al objeto visual. El resultado será 130.
Espero que esto ayude.
Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Hola
Escriba esta medida
Medidas: SUMX(FILTER(SUMMARIZE(VALUES('Table1'[Product]),'Table1'[Product],"ABCD",CALCULATE(COUNTROWS('Table1'),Table1[Net Price]>0),"EFGH",[Total price]),[ABCD]>1&&[EFGH]<>BLANK()),[EFGH]))))))))))))))))))).)).)))))))))))))))))))))))))))))))))))))))))))))))/[ABCD]>1&&[EFGH]<>BLANK()),[EFGH]))))))))))))))))))________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________
Espero que esto ayude.
Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Quizás:
Measure =
VAR __Table =
SUMMARIZE(
'Table',
[Product],
"__Count",COUNTROWS('Table')
)
RETURN
COUNTROWS(FILTER(__Table,[__Count]>1))
Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!: Power BI Cookbook Third Edition (Color)
DAX is easy, CALCULATE makes DAX hard...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

¿Puedo preguntar además que hay alguna manera de calcular el "Precio" por el filtro anterior (contar producto >1)?
A+B+C-10+20+30+10+10+20+30
Se apreciará si hay alguna solución.
Id | Producto | Precio neto |
1 | A | 10 |
2 | B | 20 |
3 | C | 30 |
4 | A | 10 |
5 | A | 10 |
6 | B | 20 |
7 | D | 40 |
8 | E | 50 |
9 | F | 60 |
10 | C | 30 |
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Hola
Escribir estas medidas
Total price = SUM(Data[Net Price])
Measure = SUMX(FILTER(SUMMARIZE(VALUES(Data[Product]),Data[Product],"ABCD",COUNTROWS(Data),"EFGH",[Total price]),[ABCD]>1),[EFGH])
Arrastre la segunda medida al objeto visual. El resultado será 130.
Espero que esto ayude.
Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

@Ashish_Mathur Esto está funcionando perfectamente. Realmente apreciado!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

@Ashish_Mathur , si es posible, me gustaría hacer un poco más basado en su fórmula proporcionada.
Para el mismo método de cálculo, ¿es posible que pueda contar "Procduct >1" sólo si "Precio neto" no está vacío?
Si este caso, el recuento de "C" es 1
sólo A & B es >1 y el precio de suma será 70.
Intento algo como pero no funciona.
Id | Producto | Precio neto |
1 | A | 10 |
2 | B | 20 |
3 | C | |
4 | A | 10 |
5 | A | 10 |
6 | B | 20 |
7 | D | |
8 | E | 50 |
9 | F | 60 |
10 | C | 30 |
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Hola
Pruebe esta medida
Medidas: SUMX(FILTER(SUMMARIZE(VALUES('Table1'[Product]),'Table1'[Product],"ABCD",COUNTROWS('Table1'),"EFGH",[Precio total]),[ABCD]>1&&[EFGH]<>BLANK()),[EFGH])
Espero que esto ayude.
Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

@Ashish_Mathur He probado las dos de estas dos medidas, todavía no puede obtener la respuesta de 70. Todavía cuentan el valor de C.
Se aprecia si pudiera sugerir
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Hola
Escriba esta medida
Medidas: SUMX(FILTER(SUMMARIZE(VALUES('Table1'[Product]),'Table1'[Product],"ABCD",CALCULATE(COUNTROWS('Table1'),Table1[Net Price]>0),"EFGH",[Total price]),[ABCD]>1&&[EFGH]<>BLANK()),[EFGH]))))))))))))))))))).)).)))))))))))))))))))))))))))))))))))))))))))))))/[ABCD]>1&&[EFGH]<>BLANK()),[EFGH]))))))))))))))))))________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________
Espero que esto ayude.
Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

De nada.
Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

@Greg_Deckler ¿Piensas en hacerlo de todos modos. Muchas gracias

Helpful resources
Join us at the Microsoft Fabric Community Conference
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Power BI Monthly Update - February 2025
Check out the February 2025 Power BI update to learn about new features.

Subject | Author | Posted | |
---|---|---|---|
06-05-2024 06:35 PM | |||
07-22-2023 09:32 AM | |||
12-21-2023 04:48 AM | |||
10-20-2023 01:34 PM | |||
09-01-2023 02:45 AM |
User | Count |
---|---|
1 | |
1 | |
1 | |
1 |