Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
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.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
96 | |
69 | |
44 | |
38 | |
29 |
User | Count |
---|---|
154 | |
93 | |
63 | |
42 | |
41 |