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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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

Top Solution Authors
Top Kudoed Authors