Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more.
Get startedGrow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.
Problema: Estoy recopilando horas por sitio mensualmente. Necesito tomar las horas mensuales y dividirlas en horas por día. Una vez que obtengamos horas por día, usaré una fórmula para calcular las tarifas. Las tarifas deben poder ser tendenciadas a nivel de sitio. El método actual da como resultado tendencias espasmódicas en el gráfico de líneas, quiero que se suavice.
@Stambla , refiérase
Medida de Power BI Dax: asignación de datos entre rangos https://youtu.be/O653vwLTUzM
Power BI Distribución/asignación del destino mensual (convertir en destino diario): Medida (diario/MTD): https://community.powerbi.com/t5/Community-Blog/Power-BI-Distributing-Allocating-the-Monthly-Target-...
Uso de la fecha de inicio y finalización del mes
Power BI: Obtención de fechas entre intervalos mediante Power Query: https://youtu.be/SFEPsKfqIks
Buen comienzo, pero ¿te importa ayudarme a escribir la consulta dax? El video de 3.5 horas es el primer enlace.
@amitchandak Gracias por tu contribución en este hilo.
Hola @Stambla ,
Creo un archivo pbix de muestra (ver el archivo adjunto) para usted, verifique si eso es lo que desea.
let
Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("dczBDcAgDEPRXXJGwnEKJLMg9l+jVBWnpicfnvznFK1aCZoU8Us99qoBkFVSJKyPBAPPE67tF3my/GYNMTJ8n8G+s+sG", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [Month = _t, SiteID = _t, Estimated_WorkHours = _t]),
#"Changed Type" = Table.TransformColumnTypes(Source,{{"Month", type date}, {"SiteID", Int64.Type}, {"Estimated_WorkHours", Int64.Type}}),
#"Grouped Rows" = Table.Group(#"Changed Type", {"Month", "SiteID"}, {{"Estimated_WorkHours", each List.Sum([Estimated_WorkHours]), type nullable number}}),
#"Added Custom" = Table.AddColumn(#"Grouped Rows", "Date", each List.Dates([Month], Number.From(Date.EndOfMonth([Month])-[Month])+1, #duration(1, 0, 0, 0))),
#"Expanded Custom" = Table.ExpandListColumn(#"Added Custom", "Date"),
#"Added Custom1" = Table.AddColumn(#"Expanded Custom", "Daily Hours", each [Estimated_WorkHours]/Duration.Days(Date.EndOfMonth([Month])-[Month])+1)
in
#"Added Custom1"
Además, puede consultar los siguientes enlaces para obtenerlo por DAX.
Resuelto: Dividir los valores mensuales en valores diarios - Microsoft Fabric Community
Saludos
User | Count |
---|---|
1 | |
1 | |
1 | |
1 | |
1 |
User | Count |
---|---|
3 | |
2 | |
1 | |
1 | |
1 |