Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Solved! Go to Solution.
Hi @yolandacb Try below code to create a calculated column:
Is PM =
IF (
MONTH('Append'[Date]) = MONTH(TODAY()) - 1 &&
YEAR('Append'[Date]) = YEAR(TODAY()),
"PM",
"NO"
)
Output:
Hope this helps!!
If this solved your problem, please accept it as a solution and a kudos!!
Best Regards,
Shahariar Hafiz
hi @yolandacb ,
you can also try like:
Is PM =
IF (
EOMONTH('Append'[Date], 0) = EOMONTH(TODAY(), -1),
"PM",
"NO"
)
@yolandacb You are unable to find 'Append'[Previous Month] beacuse Append and FinDate are two different tables which might not have relationship between them.
Alternatively if you wan create a column to decide Is PM you can try below code it calculates based on 'FinDate'[Date]
IsPM =
IF (
'FinDate'[Date] >= EOMONTH(TODAY(), -2) + 1 &&
'FinDate'[Date] <= EOMONTH(TODAY(), -1),
"PM",
"NO"
)
For some reason this didn't work. I get this error:
A single value for column 'Date' in table 'FinDate' cannot be determined. This can happen when a measure formula refers to a column that contains many values without specifying an aggregation such as min, max, count, or sum to get a single result.
Can you help?
Hi @yolandacb Try below code to create a calculated column:
Is PM =
IF (
MONTH('Append'[Date]) = MONTH(TODAY()) - 1 &&
YEAR('Append'[Date]) = YEAR(TODAY()),
"PM",
"NO"
)
Output:
Hope this helps!!
If this solved your problem, please accept it as a solution and a kudos!!
Best Regards,
Shahariar Hafiz
Thank you. When I try to use your suggested code, I can't find the column (it doesn't show). Only measures are suggested.
That was a example. You need to use your date column.
Sorry, I was creating a measure rather than a column. When I went to create a column it worked. THank you
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
Check out the November 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 20 | |
| 10 | |
| 9 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 33 | |
| 31 | |
| 20 | |
| 12 | |
| 11 |