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

calcular la banca de edad

Tengo Fact_an de mesa

Code_produitCode_Gestionnaire_ProdID_DateFicheAgentNBANRef_Idmayoría bancaria
12531235604/01/202020011
8596965896505/01/202060021
2586396325806/01/2020180032
256321235607/01/2020540042
1253965896508/01/20201620052
859696325809/01/20204860015
258631235610/01/202014580035
25632965896511/01/202043740043
12531235604/01/201912318
8596965896505/01/201960028
2586396325806/01/2019180038
256321235607/01/201960048
1253965896508/01/201960057
859696325809/01/201960017
258631235610/01/201960037
25632965896511/01/201960047



mayoría bancaria

mayoría bancariaNombre
1menos de 1 año
2menos de 2 años
3menos de 3 años
4menos de 4 años
5menos de 5 años
6menos de 6 años
7menos de 7 años
8menos de 8 años

Creo un informe y un nuevo mausure AN. WHE Un USUARIO SELECTA UN AÑO Y UN MES Y la edad bancaria, necesito calcular el recuento de las filas los últimos 12 de meses de edad bancaria< la edad bancaria seelcted por el usuario

AN - 

VAR a - SELECTEDVALUE(Dim_DateFicheAgent[ID_DateFicheAgent])
VAR b ?SELECTEDVALUE('Seniority banking'[banking seniority])
RETURN CALCULATE (
COUNTROWS(FILTER(Fact_AN;

     (Fact_AN[edad bancaria]<-b && NOT ISBLANK (Fact_AN[seniority bancaria])));
         DATESBETWEEN (
        Dim_DateFicheAgent[ID_DateFicheAgent];
        NEXTDAY ( SAMEPERIODLASTYEAR (LASTDATE ( Dim_DateFicheAgent[ID_DateFicheAgent] ) ));
        LASTDATE ( Dim_DateFicheAgent[ID_DateFicheAgent] )

))

devuelve errores valores incorrectos. Pongo un ejemplo del informe aquí

2 REPLIES 2
v-chuncz-msft
Community Support
Community Support

@Migration

Vea la solución en el post a continuación.

https://community.powerbi.com/t5/Desktop/calculating-seniority-banking/m-p/1078783

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

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.