Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

Reply
Syndicate_Admin
Administrator
Administrator

Status date Calendar

Hi all, I appreciate your help with the following

I need to create in my calendar table a column that indicates a status, the status depends on the date I have selected, for example if I select March that in the new coluna I see a status (TAM) from the aultimos 12 months to back.

This is my calendar table:

Josue85_0-1650474607964.png

and I need something like this to be

Josue85_1-1650474757027.pngJosue85_2-1650474791698.png

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Syndicate_Admin ,

I created some data:

DATE(2021,1,1) -- DATE(2024,12,31)

vyangliumsft_0-1650879039093.png

Here are the steps you can follow:

1. Create calculated column.

Column =
IF(
    'Table'[Date]>EOMONTH(TODAY(),0)&&'Table'[Date]<=EOMONTH(TODAY(),+12),"TAM",BLANK())

2. Result:

vyangliumsft_1-1650879039093.png

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hi @Syndicate_Admin ,

I created some data:

DATE(2021,1,1) -- DATE(2024,12,31)

vyangliumsft_0-1650879039093.png

Here are the steps you can follow:

1. Create calculated column.

Column =
IF(
    'Table'[Date]>EOMONTH(TODAY(),0)&&'Table'[Date]<=EOMONTH(TODAY(),+12),"TAM",BLANK())

2. Result:

vyangliumsft_1-1650879039093.png

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

amitchandak
Super User
Super User

@Syndicate_Admin , You can not use slicer value in a calculated table or calculated column

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Hello, maybe I do not explain well, what I am needing is in a new column to create a state depending on the date, for example that if I am in the month of January, from January I put a state "True" 12 months for back and the rest of the dates "False"

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! It's time to submit your entry.

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.