cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Sherin89
Regular Visitor

Calculate total days from a selected date

I have a project currently I am working on right now, and I am struggling to get this methodology to work.

 

For instance, end user selects a date, based on the date selection, it calculates

 

1. Date diff between the selected date and “Referral date”

2. Calculates the weeks based on the step1.

3. Group step 1 ( so it’s the week falls <10 then group 0-10 week, >=10 && <20 then 10-20 etc) I am particularly struggling around the groups which I am trying to do it in a column as Id need to create another column to sort the Week order and need to show this is a clustered chart.

 

Sherin89_0-1644331747796.png

 

 

What I really want to do is this. 

 

Sherin89_1-1644331747727.png

 

Any help would be appreciated. 

1 REPLY 1
AlexisOlson
Super User
Super User

One name for this is "static segmentation". I'd recommend checking out this article and/or associated video:

https://www.daxpatterns.com/static-segmentation/

Helpful resources

Announcements
Vote for T-Shirt Design

Power BI T-Shirt Design Challenge 2023

Vote for your favorite t-shirt design now through March 28.

March 2023 Update3

Power BI March 2023 Update

Find out more about the March 2023 update.

March Events 2023A

March 2023 Events

Find out more about the online and in person events happening in March!

Top Solution Authors