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
BalaVenuGopal
Resolver I
Resolver I

Cómo usar measure en filter dax

Hola equipo,

Aquí están mis datos, me gustaría crear una medida que debe calcualte no de usos que han comprado más de 1 orgulloso dividido por adormecimiento total de usos para el mes seleccionado

SI elijo varios meses espero el mismo comportamiento para los meses seleccionados [Total de usos que compraron más de 1 proudct / Total no de usos para polillas selcadas]

Datos de muestra con filtros

SEGMENTACIÓN DE INFORMES DE TABLA DE DATOS

More than 2.png

2 REPLIES 2
v-jayw-msft
Community Support
Community Support

Hola @BalaVenuGopal ,

Deberá crear una tabla calculada como segmentación de datos.

Table 2 = DISTINCT('Table'[MONTH])

Compruebe las siguientes medidas.

Measure = 
var a = CALCULATE(DISTINCTCOUNT('Table'[PRODUCT]),FILTER(ALLEXCEPT('Table','Table'[USER],'Table'[SUB DT]),'Table'[MONTH] in VALUES('Table 2'[MONTH])))
return
MAXX(ALLEXCEPT('Table','Table'[USER]),a)

Measure 2 = CALCULATE(DISTINCTCOUNT('Table'[USER]),FILTER('Table',[Measure]>1))/CALCULATE(DISTINCTCOUNT('Table'[USER]),FILTER('Table','Table'[MONTH] in VALUES('Table 2'[MONTH])))

El resultado se mostraría como se muestra a continuación.

4.PNG5.PNG

Las mejores regradaciones,

Jay

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.
tex628
Community Champion
Community Champion

Si te entiendo correctamente, de tu ejemplo estás buscando el resultado 1/7? (14%)

Si este es el caso, debería funcionar la siguiente medida:

Measure = 
DIVIDE(
CALCUlATE( COUNTROWS( SUMMARIZE ( Table , [Users] , "Count of products" , COUNT(Table[Products])) , [Count of products] <> 1 ) ,
COUNTROWS( SUMMARIZE ( Table , [Users] , "Count of products" , COUNT(Table[Products])) , BLANK())


Br
J


Connect on LinkedIn

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.