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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
Kevin0001
Frequent Visitor

Creating Month Periods

I am working on a project in PowerBI and I want to create a Period Column in my Table. 
In this column there are supposed to be 3 categories: P4, P8 and P12 (the numbers correlate to the amount of months I want to take in the period).
P4 should be January till April,
P8 should be January till August and
P12 should be January till December

So far I have the following:

Period =
SWITCH(
    TRUE(),
    MONTH([Date]) <= 4, "P4",
    MONTH([Date]) <= 8, "P8",
    MONTH([Date]) <= 12, "P12",
    BLANK()

)

The problem with this, is that it does the following:
P4 is January till April, 
P8 is May till August and
P12 is September till December.

Does anyone know a sollution?

1 ACCEPTED SOLUTION
dharmendars007
Memorable Member
Memorable Member

Hello @Kevin0001 , 

 

Not sure if you are looking for same logic(P4,P8 and P12) in one single column which will be impossible because if the first condition like till Jan to Apr is P4 has met then how can  P12 with jan to Dec can appear in same column..

 

If you find this helpful , please mark it as solution and Your Kudos are much appreciated!

 

Thank You

Dharmendar S

View solution in original post

1 REPLY 1
dharmendars007
Memorable Member
Memorable Member

Hello @Kevin0001 , 

 

Not sure if you are looking for same logic(P4,P8 and P12) in one single column which will be impossible because if the first condition like till Jan to Apr is P4 has met then how can  P12 with jan to Dec can appear in same column..

 

If you find this helpful , please mark it as solution and Your Kudos are much appreciated!

 

Thank You

Dharmendar S

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.