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.
BUENAS, ESTOY BUSCANDO UNA SOLUCIÓN A LA SIGUIENTE PROBLEMATICA QUE SE ME PRESENTA..
BUSCO 5 TARJETAS CON MEDIDAS PERCENTUALES QUE VARIEN DE ACUERDO A LOS FILTROS APLICADOS, EN EL CUAL, LA SUMA DE LAS MISMAS DE EL 100%.
HOY MI REPORTE CUENTA CON LA SIGUEINTE SALIDA DE INFORMACIÓN, CORRESPONDIENTE A LA INFO SIN APLICAR ALGUNA SEGMENTACIÓN.
MI MODELO CUENTA CON UNA TABLA DE CLIENTES(DNI), EN LA CUAL, CADA UNO TIENE UNA SITUACION PARTICULAR ( AP,B,P1,P2,C) EN LA MISMA TABLA Y SE FILTRA/SEGEMENTA POR OTRAS TABLAS, ASESOR(ASESOR) Y PARTIDA(PARTIDA). AL APLICAR UN FILTRO DE ASESOR, NOMBRE DEL EMPLEADO, Y/O PARTIDA. CARTERA ASIGNADA, CON UNA MATRIZ LOS % RESPONDEN BIEN VARIANDO SEGÚN CORRESPONDA Y TOTALIZANDO UN 100%.
AQUÍ LA PRIMER FILA CORRESPONDE A UN CARTERA CON LOS DOS ASESORES QUE TRABAJAN CON ELLA.
EL DAX QUE USO ES EL SIGUIENTE:
% SITUACION =
VAR NUM = CALCULATE(COUNT('OPER'[DNI))
VAR BASE = CALCULATE(COUNT('OPER'[DNI),ALLSELECTED())
RETURN DIVIDE(NUM,BASE)
LO QUE SUCEDE CADA VEZ QUE APLICO UN FILTRO SEA PARTIDA O ASESOR, EN LA MATRIZ LOS % VARÍAN SEGUN CORRESPONDA TOTALIZANDO UN 100%. SIN EMBARGO, AL USAR UNA TARJETA AQUÍ LAS 5 RESULTAN EN 100%.
LO QUE BUSCO LOGRAR ES QUE AL APLICAR UN FILTRO/SEGMENTO A LA PÁGINA LAS TARJETAS VARIEN COMO LO HACE LA MATRIZ Y EL RESULTADO CORRESPONDA A LA COMBINACION DE SITUACIONES SOBRE EN EL TOTAL..
Solved! Go to Solution.
@amitchandak , my solution was the following DAX
@amitchandak , my solution was the following DAX
@supercobranzas , Kudos to you. Thanks for sharing correct answer
@supercobranzas ,Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.
Try
% SITUACION =
VAR NUM = CALCULATE(COUNT('OPER'[DNI))
VAR BASE = CALCULATE(COUNT('OPER'[DNI),ALLSELECTED('OPER'))
RETURN DIVIDE(NUM,BASE)
Hi, thaks for yout help! i cant share the pbix.
That measure didnt work like i want. All cards marks 100%. I need them to vary with the segmentation.
@supercobranzas , On a high-level measure, looks correct. unless the filter is creating a cross join. This means the filter table is not joined/or joined is wrong, and it is creating a cross join.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
111 | |
100 | |
80 | |
64 | |
58 |
User | Count |
---|---|
146 | |
110 | |
93 | |
84 | |
67 |