Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and a 50 percent discount on exams.
Get startedEarn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
Estoy tratando de crear una matriz que muestre los ingresos por ubicación y proyecto .. Los proyectos individuales están funcionando muy bien, pero la suma total en la matriz para la ubicación no está sumando los números...
Mis fórmulas
Tabla: AllocatedProjectRevenue (tabla calculada, fórmula a continuación)
Entradas:
Importe: Ingresos para un proyecto
Porcentaje Incremental : % de los ingresos incrementales
Porcentaje de reemplazo: % de los ingresos de reemplazo
ID- ID de proyecto #
Ubicación : Ubicación de la producción
Tipo de ingresos: tabla con tres opciones para el tipo de ingresos (Incremental, Reemplazo, Total)
Fórmulas:
Incremental Revenue = if(selectedvalue(AllocatedProjectRevenue[Percent Total]) = 1, SUMX(AllocatedProjectRevenue, AllocatedProjectRevenue[Amount])*SELECTEDVALUE(AllocatedProjectRevenue[Percent Incremental ], 0), 0)
2/2020 | 3/2020 | ... | 6/2020 | 7/2020 | |
Ubicación | 150 | 22v | 200 | 200 | |
-- Proyecto 1 | 50 | 75 | 75 | 75 | |
-- Proyecto 2 | 100 | 100 | 22v | 22v |
2/2020 | 3/2020 | ... | 6/2020 | 7/2020 | |
Ubicación | 0 | 0 | 0 | 0 | |
-- Proyecto 1 | 50 | 75 | 75 | 75 | |
-- Proyecto 2 | 100 | 100 | 22v | 22v |
Es posible que deba probar MAX() o AVERAGE() en lugar del valor seleccionado. En el nivel de proyecto cuando se selecciona más de una ubicación, tiene demasiadas filas para mirar y no solo hay 1 valor seleccionado para el %.
Copying DAX from this post? Click here for a hack to quickly replace it with your own table names
Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C
I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com