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
Anonymous
Not applicable

Filtrar por mes en recuento distinto

Hola a todos

Tengo una lista de proyectos como fuente de mi informe. Para cada proyecto hay una columna que dice qué plataforma se usó en este proyecto específico, si no la celda está en blanco. He contado el número de plataformas usadas únicas para estos proyectos, mediante la creación de una medida:

Recuento diferencia de la plataforma utilizada de (en blanco)
VAR __BASELINE_VALUE ?
CALCULATE(
DISTINCTCOUNT('Investments'[Plataforma utilizada]),
ISBLANK('Inversiones'[Plataforma utilizada])
)
VAR __MEASURE_VALUE - DISTINCTCOUNT('Investments'[Plataforma utilizada])
devolución
IF(NOT ISBLANK(__MEASURE_VALUE), __MEASURE_VALUE - __BASELINE_VALUE)
Esto me muestra el resultado correcto en el nivel general (todos los meses), sin embargo tengo que ser capaz de filtrar esto por meses.
Si hago esto usando la fórmula anterior el resultado es incorrecto, creo que primero filtra los proyectos por mes y luego cuenta la diferencia distinta de los espacios en blanco. Lo que necesito obtener es el número de plataformas únicas utilizadas en general en cada mes.
Gracias de antemano por cualquier tipo de ayuda!
2 REPLIES 2
amitchandak
Super User
Super User

@BarKur , ¿Puede compartir datos de ejemplo y salida de ejemplo en formato de tabla? O una muestra de pbix después de eliminar datos confidenciales.

Con lo que está mal y lo que se espera .

Además, pruebe este retorno

devolución
sumx(Values('Investments'[Month Year]),IF(NOT ISBLANK(__MEASURE_VALUE), __MEASURE_VALUE - __BASELINE_VALUE))

Anonymous
Not applicable

 

@amitchandak If I include all the data, the visual table shows correct information about unique used platforms. However, if I filter it by month (for ex August) then the platform used (BX2) in another month (February) shows as the only one used in August, which is not true. I want it to show only the platforms used for the first time in history (all data) as the only used in each month.

 

Unfortunately RETURN that you proposed does not solve this problem.

Helpful resources

Announcements
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.