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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

Top Solution Authors
Top Kudoed Authors