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 tardes.
Espero me puedan ayudar. Estoy trabajando un reporte de tickets de soporte con una base de datos de SAP BW. Estoy usando la siguiente medida para calcular la cantidad de tickets activos por semana:
Cabe señalar, que la tabla de datos no está conectada a la tabla de calendario (por otra medida en el modelo). En su momento, traté de crear una segunda tabla de calendario y crear la relación, pero no funcionó.
Saludos,
Richard
Solved! Go to Solution.
Hi @RichardFig1
Try this code.
Active ticketsWK =
CALCULATE (
DISTINCTCOUNT ( 'CSM: Tickets PBI'[Número de operación.Número de operación Nivel 01] ),
FILTER (
'CSM: Tickets PBI',
(
'CSM: Tickets PBI'[WeekNum] <= MIN ( _Calendario[weeknum] )
&& MIN ( _Calendario[weeknum] ) IN VALUES ( 'CSM: Tickets PBI'[WeekNum] )
)
),
VALUES ( 'CSM: Tickets PBI'[Número de operación.Número de operación Nivel 01] )
)
- CALCULATE (
DISTINCTCOUNT ( 'CSM: Tickets PBI'[Número de operación.Número de operación Nivel 01] ),
FILTER (
'CSM: Tickets PBI',
(
'CSM: Tickets PBI'[Weekclose] <= MIN ( _Calendario[weeknum] )
&& 'CSM: Tickets PBI'[Status INC.Status INC Nivel 01] = "6. Cerrado"
&& MIN ( _Calendario[weeknum] ) IN VALUES ( 'CSM: Tickets PBI'[WeekNum] )
)
),
VALUES ( 'CSM: Tickets PBI'[Número de operación.Número de operación Nivel 01] )
)
Result is as below.
Best Regards,
Rico Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @RichardFig1
Try this code.
Active ticketsWK =
CALCULATE (
DISTINCTCOUNT ( 'CSM: Tickets PBI'[Número de operación.Número de operación Nivel 01] ),
FILTER (
'CSM: Tickets PBI',
(
'CSM: Tickets PBI'[WeekNum] <= MIN ( _Calendario[weeknum] )
&& MIN ( _Calendario[weeknum] ) IN VALUES ( 'CSM: Tickets PBI'[WeekNum] )
)
),
VALUES ( 'CSM: Tickets PBI'[Número de operación.Número de operación Nivel 01] )
)
- CALCULATE (
DISTINCTCOUNT ( 'CSM: Tickets PBI'[Número de operación.Número de operación Nivel 01] ),
FILTER (
'CSM: Tickets PBI',
(
'CSM: Tickets PBI'[Weekclose] <= MIN ( _Calendario[weeknum] )
&& 'CSM: Tickets PBI'[Status INC.Status INC Nivel 01] = "6. Cerrado"
&& MIN ( _Calendario[weeknum] ) IN VALUES ( 'CSM: Tickets PBI'[WeekNum] )
)
),
VALUES ( 'CSM: Tickets PBI'[Número de operación.Número de operación Nivel 01] )
)
Result is as below.
Best Regards,
Rico Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Pueden revisar si logran ingresar al siguiente link:
https://drive.google.com/file/d/1ivA6XXsb7mJkffOzVWTA5LXgqD-0awN0/view?usp=sharing
Saludos,
Richard
Puedes facilitarnos datos de muestra o un archivo PBIX y un ejemplo de los que esperas obtener?
Proud to be a Super User!
Paul on Linkedin.
Si, con mucho gusto. Cómo se hace en ese caso ya que por este medio no permite compartir el PBIX?
Saludos,
Lo más fácil es compartirlo desde Onedrive, Google Drive , Dropbox...
Proud to be a Super User!
Paul on Linkedin.
Muchas gracias. En el siguiente link de drive pueden descargar el pbix. La imagen compartida es el resultado esperado, pero realizado con otra fuente de datos. Mi objetivo es repolicarlo.
https://drive.google.com/drive/u/1/folders/11ulFi8IiR3lpGuahwp_qHOrqGUUSiRF7
Saludos,
Hi @RichardFig1
I don't have access to this pbix file you shared. I see three columns in the table visual in your screenshot, Week, Nuevos and Active ticketWK. Is Active ticketWK the distinct count of the Nuevos? How did you get Nuevos column, is it sum of the column? I think you can try distinct count function in value field.
Best Regards,
Rico Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
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 |
---|---|
110 | |
95 | |
76 | |
65 | |
51 |
User | Count |
---|---|
146 | |
109 | |
106 | |
88 | |
61 |