Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount.
Register nowThe Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.
Hi All,
I have a table that looks like this:
Location | Start Date |
loc 1 | 1-Jan-19 |
loc 2 | 13-Feb-19 |
loc 3 | 17-Feb-19 |
loc 4 | 1-Aug-18 |
loc 5 | 1-Jun-19 |
loc 6 | 13-May-19 |
loc 7 | 12-Apr-19 |
This table has a one to many relationship with my main data (DATA) table that contains an order date. This DATA table also has a many to one relationship with a date table that i created. I would need your help with the following:
I need to add a state to each of these locations based on the date selected using a slicer/filter. The expected output for Feb 2019, May 2019 and June 2019 could be as follows:
Location | Feb State | May State | June State |
loc 1 | Old | Old | Old |
loc 2 | New | Old | Old |
loc 3 | New | Old | Old |
loc 4 | Old | Old | Old |
loc 5 | Not launched | Not launched | New |
loc 6 | Not launched | New | Old |
loc 7 | Not launched | Old | Old |
Any help would truly be appreciated.
Solved! Go to Solution.
Hi,
You may download my PBI file from here.
Hope this helps.
Hi,
You may download my PBI file from here.
Hope this helps.
You are welcome.
I could use some more help though Ashish. One small modifications i what i am looking for:
For example:
If the slicer was set for dates between Feb 2019 to May 2019:
a) Locations launched in June 2019 - need to be classified as Not yet launched
b) Locations launched in March and April 2019 - need to be classified as New
c) Locations launched before March 2019 - need to be classified as old
d) Locations launched in May 2019 - need to be classified as Launched this month
Hi,
I can only understand the answer of point a. I cannot understand the expected answer of b, c and d. GIven an explanation.
It's the way we classify locations internally. basically, each location is the location of a retail store. Any store that is less than 2 months old is classified as New internally. Could you help me figure it out in this context? I'll try to work on it by modifying the formula from your solution sheet and see if i can get this done. Anyway, thank you so much once again
Hi
Share some data and in your expected format (with a slicer for time period applied), show the expected output with an explanation.
Hi Ashish,
I just used the logic in your file and figured out a solution for my problem. I just created a month index and modified the logic from your solution. I'm very new to all of this so Thank you so much for all the help. Really appreciate it! Also, my apologies for not sharing enough details earlier.
You are most welcome. Glad you could find a solution by yourself.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
User | Count |
---|---|
124 | |
76 | |
71 | |
57 | |
50 |
User | Count |
---|---|
162 | |
84 | |
68 | |
66 | |
61 |