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
nicomenza
New Member

Problem visualizing a measure generated with the value I am filtering

So, this has been my first project on Power BI. And its something I have to solve because of my Job. To give some context: I am making a dashboard for the marketing team where I try to measure the customer lifetime value and divide it by industry.

The problem I have is that I don't have a primary key to link the table of companies with the table of measures. And when I try to filter the customers it doesn't filter the churn rate (an aggregated measure used for the calculation of the lifetime value).
Its in spanish, either way hope it helps. 

nicomenza_0-1662675222604.png

Here you can see my problem, when filtering by industry_type it doesn't filter all the measures:

nicomenza_1-1662675408863.png

 

Information about the tables:

nicomenza_2-1662675783581.png

The first table:

nicomenza_3-1662675859438.png

The measures table (where rows are not customers but a measure of time):

nicomenza_4-1662675975471.png

The DAX of the columns:

Medidas Churn = DISTINCT(Calendario[First day month])

Iniciados Antes = CALCULATE(COUNTA('public temp_churn_subs'[fecha_de_inicio]), filter('public temp_churn_subs','public temp_churn_subs'[fecha_de_inicio]<'Medidas Churn'[First day month]))

De Baja Antes = CALCULATE(COUNTA('public temp_churn_subs'[fecha_de_churn]), filter('public temp_churn_subs','public temp_churn_subs'[fecha_de_churn]<'Medidas Churn'[First day month]))

Clientes Activos = 'Medidas Churn'[Iniciados Antes]-'Medidas Churn'[De Baja Antes]

Clientes de Baja Mes = 'Medidas Churn'[De Baja Antes] - LOOKUPVALUE('Medidas Churn'[De Baja Antes],'Medidas Churn'[First day month], DATEADD('Medidas Churn'[First day month],-1,MONTH))

Churn Rate = 'Medidas Churn'[Clientes de Baja Mes]/'Medidas Churn'[Clientes Activos]

 

If I am not being clear on something (English is not my first language) or you need more details please let me know. 
Thank you for your time! 








1 REPLY 1
lbendlin
Super User
Super User

Please provide sanitized sample data that fully covers your issue. https://community.powerbi.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-...
Please show the expected outcome based on the sample data you provided.

https://community.powerbi.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523

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.