Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Mig
Frequent Visitor

Es posible contar valores repetidos en toda una tabla

Hola, queria ver si alguien sabe como podria contar valores que se repiten en diferentes columnas de una forma sencilla. Como tengo muchas columnas es demasiado largo contar una por una , por ejemplo, todos los valores de "competente" que se repiten


Mig_0-1598305474179.png

 

2 REPLIES 2
amitchandak
Super User
Super User

@Mig , first unpivot

https://radacad.com/pivot-and-unpivot-with-power-bi
Transpose : https://yodalearning.com/tutorials/power-query-helps-transposing-data/

 

The

count(Table[Value]) - distinctcount(Table[Value])

 

will give you repeated value

mahoneypat
Employee
Employee

The easiest way to do this would be to unpivot all the columns and load the table.  You can then make a table visual with the values in the Value column, and add the attribute column (the former column headers) with an aggregation of count.

 

If this works for you, please mark it as the solution.  Kudos are appreciated too.  Please let me know if not.

Regards,

Pat





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors