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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
Anonymous
Not applicable

Split Month into Biweekly but Still Remain in Date Format

Help please!!! 

I have a Date column but I want to split the month into bi weekly with DAX(column or measure, not sure the best) but still remain as a date format. Example of what I want to achieve is attached. Thanks.Capture.JPG

3 ACCEPTED SOLUTIONS
Anonymous
Not applicable

Thanks @Greg_Deckler , I am still new to Power BI, if you can help with the DAX that can achieve that. Thanks.

View solution in original post

@Anonymous Well, I don't know your data so not sure how you segment your months. If all you have is a Date column then perhaps something along the lines of:

Column =
  VAR __Date = [Date]
  VAR __StartOfMonth = DATE(YEAR(__Date), MONTH(__Date), 1)
  VAR __StartWeek = WEEKNUM(__StartOfMonth)
  VAR __CurrentWeek = WEEKNUM(__Date)
RETURN
  IF( (__CurrentWeek - __StartWeek) > 2,"Period 2", "Period 1")

Otherwise, Sorry, having trouble following, can you post sample data as text and expected output?
Not really enough information to go on, please first check if your issue is a common issue listed here: https://community.powerbi.com/t5/Community-Blog/Before-You-Post-Read-This/ba-p/1116882

Also, please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490

The most important parts are:
1. Sample data as text, use the table tool in the editing bar
2. Expected output from sample data
3. Explanation in words of how to get from 1. to 2.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

v-yadongf-msft
Community Support
Community Support

Hi @Anonymous ,

 

As  @Greg_Deckler  said, please try following DAX to create new columns:

 

Column 1 = 
VAR __Date = [Date]
VAR __StartOfMonth = DATE(YEAR(__Date), MONTH(__Date), 1)
VAR __StartWeek = WEEKNUM(__StartOfMonth)
VAR __CurrentWeek = WEEKNUM(__Date)
RETURN
IF( (__CurrentWeek - __StartWeek) > 2,"P2", "P1")

Column 2 = FORMAT([Date],"mmm")

 

 

Please create a clustered column chart like below, you can split Month into Biweekly but Still Remain in Date Format:

vyadongfmsft_0-1661766197096.png

 

If I misunderstand your demands, please provide some data screenshots (remember to hide sensitive information) to help us better solve your problem.

 

Best regards,

Yadong Fang

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

4 REPLIES 4
v-yadongf-msft
Community Support
Community Support

Hi @Anonymous ,

 

As  @Greg_Deckler  said, please try following DAX to create new columns:

 

Column 1 = 
VAR __Date = [Date]
VAR __StartOfMonth = DATE(YEAR(__Date), MONTH(__Date), 1)
VAR __StartWeek = WEEKNUM(__StartOfMonth)
VAR __CurrentWeek = WEEKNUM(__Date)
RETURN
IF( (__CurrentWeek - __StartWeek) > 2,"P2", "P1")

Column 2 = FORMAT([Date],"mmm")

 

 

Please create a clustered column chart like below, you can split Month into Biweekly but Still Remain in Date Format:

vyadongfmsft_0-1661766197096.png

 

If I misunderstand your demands, please provide some data screenshots (remember to hide sensitive information) to help us better solve your problem.

 

Best regards,

Yadong Fang

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

Anonymous
Not applicable

Thanks @Greg_Deckler , I am still new to Power BI, if you can help with the DAX that can achieve that. Thanks.

@Anonymous Well, I don't know your data so not sure how you segment your months. If all you have is a Date column then perhaps something along the lines of:

Column =
  VAR __Date = [Date]
  VAR __StartOfMonth = DATE(YEAR(__Date), MONTH(__Date), 1)
  VAR __StartWeek = WEEKNUM(__StartOfMonth)
  VAR __CurrentWeek = WEEKNUM(__Date)
RETURN
  IF( (__CurrentWeek - __StartWeek) > 2,"Period 2", "Period 1")

Otherwise, Sorry, having trouble following, can you post sample data as text and expected output?
Not really enough information to go on, please first check if your issue is a common issue listed here: https://community.powerbi.com/t5/Community-Blog/Before-You-Post-Read-This/ba-p/1116882

Also, please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490

The most important parts are:
1. Sample data as text, use the table tool in the editing bar
2. Expected output from sample data
3. Explanation in words of how to get from 1. to 2.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...
Greg_Deckler
Community Champion
Community Champion

@Anonymous You should be able to create a column that flags the period and then just use that in your Legend. Should end up with 2 columns for each month.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

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.