Forum Discussion
VMoza
4 years agoFrequent Visitor
Change Column Reference
Hi, Fairly new to Power BI and would like to understand how I can possibly change the reference column to SUM if the month has not ended. FX I have two tables, one with Actuals and one with Fore...
- 4 years ago
Hi VMoza ,
Please try the following formula:
Measure = IF ( FORMAT ( MAX ( Dim_Dates[Date] ), "yyyymm" ) >= FORMAT ( TODAY (), "yyyymm" ), SUM ( Forecast[Forecast] ), SUM ( Actuals[Actuals] ) )If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
v-kkf-msft
4 years agoCommunity Support
Hi VMoza ,
Please try the following formula:
Measure =
IF (
FORMAT ( MAX ( Dim_Dates[Date] ), "yyyymm" ) >= FORMAT ( TODAY (), "yyyymm" ),
SUM ( Forecast[Forecast] ),
SUM ( Actuals[Actuals] )
)
If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- VMoza4 years agoFrequent Visitor
Thank you! This worked! 😄