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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

How to group date using a week End Date column ?

Hi Community,

 

I have a column that is Date data type . I want to create Start Date and End Date using the same Column . Here , I want Start Date and End date to be Previous Week Monday and Current Week Monday . 

 

I created 2 Calculated columns  as shown below  . 

 

Week Start Date = SSPR[ActivityDateTime] - WEEKDAY( SSPR[ActivityDateTime],2 ) + 1
Week End Date = SSPR[ActivityDateTime] + 8 - WEEKDAY( SSPR[ActivityDateTime],2 )
 
I am getting the dates properly as shown below in screen shot. 
 
Capture.JPG
 
Now, i want to group data by Week End Date and do a count of rows to show them in Stacked column chart  . When i do that , I am getting a visual like shown below. The dates in X-Axis are not coming correctly . They are showing dates of Sundays of every week. But I want to show the Mondays which is Week End date of every week . 
 
Capture.JPG
 
Kindly help . 
 
G Venkatesh 
1 ACCEPTED SOLUTION
V-pazhen-msft
Community Support
Community Support

@Anonymous 
The group bin feature for data column will group based on the whole date. Try change the date type to Text, create groups with the text date in the x-axis.

Vpazhenmsft_0-1630896027903.png

 

 

Paul Zheng _ Community Support Team
If this post helps, please Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
V-pazhen-msft
Community Support
Community Support

@Anonymous 
The group bin feature for data column will group based on the whole date. Try change the date type to Text, create groups with the text date in the x-axis.

Vpazhenmsft_0-1630896027903.png

 

 

Paul Zheng _ Community Support Team
If this post helps, please Accept it as the solution to help the other members find it more quickly.

amitchandak
Super User
Super User

@Anonymous , are you using weekend date column on the x-axis. I doubt that. Because date is not same.

 

Also, make sure the axis is categorical

Anonymous
Not applicable

Hi Amit,

 

Yes I have created group(bins) based on Weekend Date as Direct Column of Weekend Date is not grouping data . When I add the new column based of Grouped bins Weekend date, thats where dates appeared differently. 

 

Yes I have turned the Axis type from Continous to Categorical. 

 

Thanks,

G Venkatesh 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.