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

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.

Reply
HenryJS
Post Prodigy
Post Prodigy

Matriz: Recuento de cadena de texto en encabezados

Hola a todos

Tengo la siguiente medida en una matriz.

Me gustaría poder 'Total' el recuento de cadenas "Sí" en los encabezados de columna y fila.

¿Es posible?

¿Hoja de horas? • IF(SELECTEDVALUE('Export Placements'[PlacementStartDate])<-MAX('Calendar'[Date]) && SELECTEDVALUE('Export Placements'[PlacementEndDate]) >'MAX('Calendar'[Date]), "Yes", BLANK())
Capture.JPG
4 REPLIES 4
amitchandak
Super User
Super User

Use filtrado y cuando el ámbito no sea fecha y lo que tenga fila, use la medida count

https://powerpivotpro.com/2013/03/hasonevalue-vs-isfiltered-vs-hasonefilter/

La medida de recuento será la misma que la medida sí, pero eso hará suma

El 25 de abril estoy organizando un seminario web en Power BI, Comprobar detalles - https://www.linkedin.com/posts/amitchandak78_webinar-tech-techforgood-activity-6658266754378231808-y...

@Pragati11

Habría recuentos de "Sí" donde he puesto puntos rojos.

Capture.JPG

Hola @HenryJS ,

Aquí vamos:

Measure = 
IF (
    ISFILTERED ( 'Table'[date] ),
    IF (
        ISINSCOPE ( 'Table'[sub] ),
        MAX ( 'Table'[y/n] ),
        CALCULATE (
            DISTINCTCOUNT ( 'Table'[sub] ),
            FILTER ( 'Table', 'Table'[y/n] = "yes" )
        )
    ),
    BLANK ()
)

Capture.PNG

Pbix como adjunto

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.
Pragati11
Super User
Super User

Hola @HenryJS ,

La consulta no proporciona suficientes detalles. ¿Puede intentar compartir algunas capturas de pantalla de datos y la captura de pantalla de salida esperada?

Gracias

Pragtai

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

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.