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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

Selecting multiple Date range and labelling them

Hi,

So i have this table. that calculate the Reg Date and labelling them by "Yr 1 till >Yr 10"

So how is this supposed to work is in excel:
i have the "Reg Date" filtering from JAN 2019 - till the current of the month of 2019 then getting the Nov-Dec 2018 So that will be labelling as "Yr 1"

then for Yr 2 would be from JAN 2018 till current of the month (oct) 2018 and getting the Nov-Dec 2017 data that would be labelling as "Yr 2"


For Yr 3 its like this:

and so on till Yr 10 .

WHILE, the rest of the data it would be all in “>Yr 10”





 

2 REPLIES 2
Mariusz
Community Champion
Community Champion

Hi @Anonymous 

 

Please see the attached file with the solution.
I've used the below article to create Relative Date Dimension table in the Query Editor and later added an extra DAX column "Column" to Relative Date Dimension table, with the logic that meets your requirement.

https://community.powerbi.com/t5/Community-Blog/Relative-Date-Dimension/ba-p/779039

 

 

Best Regards,
Mariusz

If this post helps, then please consider Accepting it as the solution.

Please feel free to connect with me.
Mariusz Repczynski

 

 

Anonymous
Not applicable

Hi @Mariusz 

Thank you so much for your reply, do you mind to do a power bi sample based on the excel sample (link) that I provide? 
I would appreciate it so much!

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.