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
WilliamForero
Helper I
Helper I

Medida cuenta identificaciones con filtros

Team buen dia,

 

tengo una tabla que tiene las columnas identificacion, Solicitud_ID.

estoy tratando de crear una medida que me traiga la cuenta del DISTINCTCOUNT(BASE_FINAL[IDENTIFICACION]) y que tenga en cuenta toda la tabla BASE_FINAL y adicinal que tenga en cuenta que la solicitud_ID sean iguales las demas filas

 

intento con esta medida

 

CALCULATE(DISTINCTCOUNT(BASE_FINAL[IDENTIFICACION]),REMOVEFILTERS(),BASE_FINAL[SOLICITUD_ID]=[Solicitud])
 
Pero me genera el error 'Se ha usado una función 'PLACEHOLDER' en una expresión True/False que se utiliza como expresión de filtro de tabla, lo que no está permitido.'
 
1 ACCEPTED SOLUTION
FreemanZ
Super User
Super User

hi @WilliamForero ,

 

not sure i fully get you, supposing you have a table like:

FreemanZ_0-1702701260674.png

 

try to plot a card visual with a measure like

Measure = 
CALCULATE(
    DISTINCTCOUNT(BASE_FINAL[IDENTIFICACION]),
    REMOVEFILTERS(),
    FILTER(
        VALUES(BASE_FINAL[SOLICITUD_ID]),
        CALCULATE(COUNTROWS(BASE_FINAL))>1
    )
)

 

it worked like:

FreemanZ_1-1702701338457.png

 

 

View solution in original post

1 REPLY 1
FreemanZ
Super User
Super User

hi @WilliamForero ,

 

not sure i fully get you, supposing you have a table like:

FreemanZ_0-1702701260674.png

 

try to plot a card visual with a measure like

Measure = 
CALCULATE(
    DISTINCTCOUNT(BASE_FINAL[IDENTIFICACION]),
    REMOVEFILTERS(),
    FILTER(
        VALUES(BASE_FINAL[SOLICITUD_ID]),
        CALCULATE(COUNTROWS(BASE_FINAL))>1
    )
)

 

it worked like:

FreemanZ_1-1702701338457.png

 

 

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.