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.
Hola comunidad:
Tengo el siguiente problema tengo un tabla (idh_hist20062020) que tiene el valor de las facturas en distintos periodos de tiempo
ejemplo
Bill | Invoice | Amont | Date | Key |
2222 | 12345 | 56986 | 31-02-2021 | febrero2021 |
222 | 12222 | 256879 | 02-01-2020 | enero2020 |
256325 | 256589 | 2225488 | 31-01-2021 | enero2021 |
tambien tengo una tabla con las metas de este año,
mes | año | porcentaje | Keymeta |
enero | 2021 | 4% | enero2021 |
febrero | 2021 | 10% | febrero2021 |
las metas son el aumento de venta del año anterior, para calcular el monto acumulado del año anterior tengo la siguiente medida
Año | Mes | Monto | Monto periodo anterior | Meta | Meta a alcanzar |
2021 | enero | 2225488 | 256879 | 4% | (Monto periodo anterior) * (meta) |
alguna idea las tablas estan relacionadas por el campo key
Solved! Go to Solution.
You could create measures by the following formula:
Monto periodo anterior =
VAR _date =
EOMONTH ( MAX ( [Date] ), -12 )
RETURN
CALCULATE (
SUM ( idh_hist20062020[Monto] ),
FILTER ( ALL ( 'idh_hist20062020' ), EOMONTH ( [Date], 0 ) = _date )
)
Meta a alcanzar =[Monto periodo anterior]*MAX('Table'[porcentaje])
The final output is shown below:
Best Regards,
Community Support Team_ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
You could create measures by the following formula:
Monto periodo anterior =
VAR _date =
EOMONTH ( MAX ( [Date] ), -12 )
RETURN
CALCULATE (
SUM ( idh_hist20062020[Monto] ),
FILTER ( ALL ( 'idh_hist20062020' ), EOMONTH ( [Date], 0 ) = _date )
)
Meta a alcanzar =[Monto periodo anterior]*MAX('Table'[porcentaje])
The final output is shown below:
Best Regards,
Community Support Team_ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
User | Count |
---|---|
85 | |
81 | |
66 | |
62 | |
53 |
User | Count |
---|---|
120 | |
99 | |
91 | |
83 | |
65 |