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.
Tengo Fact_an de mesa
Code_produit | Code_Gestionnaire_Prod | ID_DateFicheAgent | NBAN | Ref_Id | mayoría bancaria |
1253 | 12356 | 04/01/2020 | 200 | 1 | 1 |
8596 | 9658965 | 05/01/2020 | 600 | 2 | 1 |
25863 | 963258 | 06/01/2020 | 1800 | 3 | 2 |
25632 | 12356 | 07/01/2020 | 5400 | 4 | 2 |
1253 | 9658965 | 08/01/2020 | 16200 | 5 | 2 |
8596 | 963258 | 09/01/2020 | 48600 | 1 | 5 |
25863 | 12356 | 10/01/2020 | 145800 | 3 | 5 |
25632 | 9658965 | 11/01/2020 | 437400 | 4 | 3 |
1253 | 12356 | 04/01/2019 | 123 | 1 | 8 |
8596 | 9658965 | 05/01/2019 | 600 | 2 | 8 |
25863 | 963258 | 06/01/2019 | 1800 | 3 | 8 |
25632 | 12356 | 07/01/2019 | 600 | 4 | 8 |
1253 | 9658965 | 08/01/2019 | 600 | 5 | 7 |
8596 | 963258 | 09/01/2019 | 600 | 1 | 7 |
25863 | 12356 | 10/01/2019 | 600 | 3 | 7 |
25632 | 9658965 | 11/01/2019 | 600 | 4 | 7 |
mayoría bancaria
mayoría bancaria | Nombre |
1 | menos de 1 año |
2 | menos de 2 años |
3 | menos de 3 años |
4 | menos de 4 años |
5 | menos de 5 años |
6 | menos de 6 años |
7 | menos de 7 años |
8 | menos 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í
Vea la solución en el post a continuación.
https://community.powerbi.com/t5/Desktop/calculating-seniority-banking/m-p/1078783
Puse un ejemplo de archivo pbix aquí https://community.powerbi.com/t5/forums/replypage/board-id/power-bi-designer/message-id/499778
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
2 | |
2 | |
2 | |
2 | |
1 |