User Profile
ivancespedesl
Helper I
Joined 7 years ago
User Widgets
Contributions
Average of a measure with several count and sum
I have two identical measures, one with COUNT and another with SUM. The measure is the following: Mix. = COUNT('Data clientes lunes por 12 meses'[Cant_CA])+ count('Data clientes lunes por 12 meses'[Cant_CC])+ count('Data clientes lunes por 12 meses'[Cant_CD])+ count('Data clientes lunes por 12 meses'[Cant_MC])+ count('Data clientes lunes por 12 meses'[Cant_NE])+ count('Data clientes lunes por 12 meses'[Cant_PR_Com])+ count('Data clientes lunes por 12 meses'[Cant_PR_Hip])+ count('Data clientes lunes por 12 meses'[Cant_PR_Hip])+ count('Data clientes lunes por 12 meses'[Cant_PR_LC])+ count('Data clientes lunes por 12 meses'[Cant_PR_Per])+ count('Data clientes lunes por 12 meses'[Cant_PR_Tie])+ count('Data clientes lunes por 12 meses'[Cant_PR_Vh])+ count('Data clientes lunes por 12 meses'[Cant_TC]) I made a graph with this data and I want to know the average at each point. How can I do this? Also, i tried creating a column but it aggregated everything. Here is the pic:844Views0likes3CommentsFiltering using a measure insidea calculate function
Im having trouble filtering something pretty basic. I made a measure that gives me the "Mix": Mix = COUNT('Data clientes lunes por 12 meses'[Cant_CA]) + COUNT('Data clientes lunes por 12 meses'[Cant_CC]) + COUNT('Data clientes lunes por 12 meses'[Cant_TC]) + COUNT('Data clientes lunes por 12 meses'[Cant_CD]) + COUNT('Data clientes lunes por 12 meses'[Cant_NE]) + COUNT('Data clientes lunes por 12 meses'[Cant_PR_Vh]) + COUNT('Data clientes lunes por 12 meses'[Cant_PR_Com]) + COUNT('Data clientes lunes por 12 meses'[Cant_PR_Hip]) + COUNT('Data clientes lunes por 12 meses'[Cant_PR_Tie]) + COUNT('Data clientes lunes por 12 meses'[Cant_PR_Per]) + COUNT('Data clientes lunes por 12 meses'[Cant_PR_LC]) + COUNT('Data clientes lunes por 12 meses'[Cant_MC]) I want to make a measure where I get the amount of people (CLIENT_ID) that Mix >=2. For this i wrote the following: 2+ productos = CALCULATE(DISTINCTCOUNT('Data clientes lunes por 12 meses'[CLIENT_ID]), FILTER('Data clientes lunes por 12 meses',[Mix]>=2) ) Then I made a KPI visual with Date as my trend (i have an observation per day for every client) and the measure as my value. Unfortunately, it didnt work. What should I do?Solved1.2KViews0likes2CommentsRe: Custom Lookup - last customer segment type to products table via Customer Code
Hi, KC v-yuta-msft I have decided to do the snowflake version of this link: https://powerpivotpro.com/2019/06/how-can-i-get-a-lookup-table-from-a-slowly-changing-dimension-scd/ My approach would be to filter using MAX date of the report, however, what if a customer stops appearing on the MAX date because he is out of the company? I should have MAX date per customer in order to maintain all the Customer ID. Also, I should use an SQL query to create the table. Any suggestions?1.1KViews0likes0CommentsRe: Custom Lookup - last customer segment type to products table via Customer Code
I Have the following table 'Customers': Codigo_Cliente Tipo_De_Persona Codigo_Oficial Codigo_Ingreso Month FechaCarga Es_Cliente 442222 N LMIESES Clasico June 2019-06-28 S 442222 N LMIESES Clasico May 2019-05-31 S 442222 N LMIESES Preferencial April 2019-04-30 S 442223 N CTEJADA Clasico June 2019-06-28 S 442223 N CTEJADA Clasico May 2019-05-31 S 442223 N CTEJADA Prestige April 2019-04-30 S 442224 N FRSANTANA Clasico April 2019-04-30 S 442224 N EAVILA Clasico May 2019-05-31 S 442224 N EAVILA Preferencial June 2019-06-28 S And the following table 'Products': CODIGO_CLIENTE NOMBRE_PRODUCTO NUMERO_PRODUCTO 442222 CUENTAS DE AHORROS NÓMINA ELECTRÓNICA DOP 11305000008088 442223 VISA CLASICA 668060 442224 CUENTAS DE AHORROS CON LIBRETA USD 21072030006329 442225 VISA ORO 498904 What I need is to get this: CODIGO_CLIENTE NOMBRE_PRODUCTO NUMERO_PRODUCTO Segmento 442222 CUENTAS DE AHORROS NÓMINA ELECTRÓNICA DOP 11305000008088 Clasico 442223 VISA CLASICA 668060 Clasico 442224 CUENTAS DE AHORROS CON LIBRETA USD 21072030006329 Clasico How? Selecting the last (based on date closest to today) Codigo_Ingreso from the Customers table and doing a lookup on the Products table. Please help me with this matter.1.1KViews0likes3CommentsRe: Client status over time
Hi, To clarify the matter let's explain the desired result: IF Customer_Status on the last period was S and now it is S, 'Active' IF Customer_Status on the last period was N and now it is N, 'Inactive' IF Customer_Status on the last period was S and now it is N, 'Deserted' IF Customer_Status on the last period was N and now it is S, 'Reactivated' This tracking must be done through the Customer ID that remains constant with the client over time.668Views0likes0CommentsRe: Changing column graph displayed value and getting measures out of it
Hi, Using this code I was able to create a variable that gives me this output: This allows me to get the totals and graphs depending on the selection as I want to be presented: However, Im having problem making measures as Average, MoM%, etc. I think the problem is that it does not understand the time variables, therefore, does not calculate properly. What I want to do is to create measures as Average, MoM% that work for every variable selected so I want to do this calculations specifically to the variable Measure. Any other info you need, Im at your service.784Views0likes1Comment
Data Privacy
Microsoft Fabric Community and Privacy
To learn more about how we manage your data, please review the Microsoft Fabric Community Data Privacy guide.