Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
Hi,
I have a table as shown below.
How to create a field to show Last 30 days, Last 60 days, Last 90 days and Last 180 days data?
Example:
When user selects "Last 90 days", Job A-123, B-123, C-123 should show up.
When user selects "Last 60 days", Job A-123, B-123 should show up.
When user selects "Last 30 days", Job A-123 should show up.
Job | Days Difference | Category |
A-123 | 25 | 0 - 30 days |
B-123 | 38 | 31- 60 days |
C-123 | 86 | 61- 90 days |
D-123 | 130 | 91 -180 days |
E-123 | 157 | 91 -180 days |
F-123 | 190 | > 180 days |
Solved! Go to Solution.
@PBI_newuser Looks like you had just missed the relationship between the tables step:
Once that was in place, it worked. Please see attached.
Respectfully,
Zoe Douglas (DataZoe)
Follow me on LinkedIn at https://www.linkedin.com/in/zoedouglas-data
See my reports and blog at https://www.datazoepowerbi.com/
@PBI_newuser I would try this approach:
1. Create a table with the Last X Days mapped to your Days Difference (Modeling > New Table)
2. Then create a relationship between your Table and this new table on the common Days Difference column. This will need to be many to many, the direction has to be that Last X Days Slicer filters Table.
3. Now you can use your Last X Days field as a slicer to have the jobs filter appropriately.
Respectfully,
Zoe Douglas (DataZoe)
Follow me on LinkedIn at https://www.linkedin.com/in/zoedouglas-data
See my reports and blog at https://www.datazoepowerbi.com/
@PBI_newuser Looks like you had just missed the relationship between the tables step:
Once that was in place, it worked. Please see attached.
Respectfully,
Zoe Douglas (DataZoe)
Follow me on LinkedIn at https://www.linkedin.com/in/zoedouglas-data
See my reports and blog at https://www.datazoepowerbi.com/
@PBI_newuser Awesome, glad to hear it! 🙂
Respectfully,
Zoe Douglas (DataZoe)
Follow me on LinkedIn at https://www.linkedin.com/in/zoedouglas-data
See my reports and blog at https://www.datazoepowerbi.com/
User | Count |
---|---|
140 | |
113 | |
104 | |
76 | |
63 |
User | Count |
---|---|
135 | |
126 | |
110 | |
70 | |
61 |