Don't miss your chance to take exam DP-600 or DP-700 on us!
Request nowLearn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
Hi guys,
I have calculated the proportional target up to the day before today, but I would like to calculate this proportional target for 6 months, up to June.
is a calculated column
Solved! Go to Solution.
You can try the following code.
MetaProporcional =
VAR dia =
SUMX (
FILTER (
'Calendário',
'Calendário'[Data] >= '01. Meta'[Primeiro dia]
&& 'Calendário'[Data] <= '01. Meta'[Ultimo dia]
&& 'Calendário'[mês] = '01. Meta'[Mês]
&& 'Calendário'[ano] = '01. Meta'[Ano]
&& 'Calendário'[mês] >= 1
&& 'Calendário'[mês] <= 6
),
'Calendário'[DIaUtil]
)
VAR metaproporcional =
DIVIDE ( '01. Meta'[Meta], dia )
* SUMX (
FILTER (
'Calendário',
'Calendário'[Data] >= '01. Meta'[Primeiro dia]
&& 'Calendário'[Data]
<= TODAY () - 1
&& 'Calendário'[mês] = '01. Meta'[Mês]
&& 'Calendário'[ano] = '01. Meta'[Ano]
&& 'Calendário'[mês] >= 1
&& 'Calendário'[mês] <= 6
),
'Calendário'[DIaUtil]
)
RETURN
metaproporcional
Best Regards!
Yolo Zhu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
You can try the following code.
MetaProporcional =
VAR dia =
SUMX (
FILTER (
'Calendário',
'Calendário'[Data] >= '01. Meta'[Primeiro dia]
&& 'Calendário'[Data] <= '01. Meta'[Ultimo dia]
&& 'Calendário'[mês] = '01. Meta'[Mês]
&& 'Calendário'[ano] = '01. Meta'[Ano]
&& 'Calendário'[mês] >= 1
&& 'Calendário'[mês] <= 6
),
'Calendário'[DIaUtil]
)
VAR metaproporcional =
DIVIDE ( '01. Meta'[Meta], dia )
* SUMX (
FILTER (
'Calendário',
'Calendário'[Data] >= '01. Meta'[Primeiro dia]
&& 'Calendário'[Data]
<= TODAY () - 1
&& 'Calendário'[mês] = '01. Meta'[Mês]
&& 'Calendário'[ano] = '01. Meta'[Ano]
&& 'Calendário'[mês] >= 1
&& 'Calendário'[mês] <= 6
),
'Calendário'[DIaUtil]
)
RETURN
metaproporcional
Best Regards!
Yolo Zhu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the February 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 50 | |
| 40 | |
| 37 | |
| 14 | |
| 14 |
| User | Count |
|---|---|
| 85 | |
| 69 | |
| 38 | |
| 29 | |
| 27 |