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 All,
My calculated column "Previous Month" is not giving the correct value now. Since last week everything was working fine.
I cant see the option "Yes" in the dropdown now.
Is it because of the year condition? If so, what calculation should I use?
Solved! Go to Solution.
Hi,
I am not sure how your data model looks like, but please try something like below for creating a new column.
Previous Month CC =
SWITCH (
TRUE (),
MONTH ( TODAY () ) <> 1,
IF (
YEAR ( AGGR_LAND_EXPAND_VIEW[DATE] ) = YEAR ( TODAY () )
&& AGGR_LAND_EXPAND_VIEW[CALENDAR_MONTH]
= MONTH ( TODAY () ) - 1,
"Yes",
"No"
),
MONTH ( TODAY () ) = 1,
IF (
YEAR ( AGGR_LAND_EXPAND_VIEW[DATE] )
= YEAR ( TODAY () ) - 1
&& AGGR_LAND_EXPAND_VIEW[CALENDAR_MONTH] = 12,
"Yes",
"No"
)
)
Hi,
I am not sure how your data model looks like, but please try something like below for creating a new column.
Previous Month CC =
SWITCH (
TRUE (),
MONTH ( TODAY () ) <> 1,
IF (
YEAR ( AGGR_LAND_EXPAND_VIEW[DATE] ) = YEAR ( TODAY () )
&& AGGR_LAND_EXPAND_VIEW[CALENDAR_MONTH]
= MONTH ( TODAY () ) - 1,
"Yes",
"No"
),
MONTH ( TODAY () ) = 1,
IF (
YEAR ( AGGR_LAND_EXPAND_VIEW[DATE] )
= YEAR ( TODAY () ) - 1
&& AGGR_LAND_EXPAND_VIEW[CALENDAR_MONTH] = 12,
"Yes",
"No"
)
)
Thanks for the help.
It worked for Dec'22 !!!
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 |
|---|---|
| 51 | |
| 40 | |
| 37 | |
| 14 | |
| 14 |
| User | Count |
|---|---|
| 84 | |
| 69 | |
| 38 | |
| 29 | |
| 27 |