Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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/
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
114 | |
99 | |
83 | |
70 | |
60 |
User | Count |
---|---|
150 | |
115 | |
104 | |
89 | |
65 |