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.
DAX to find all inactive ItemID over -3 month. ItemID which havent move OUT in -3 month (ill make into field parameter 6/12/24/36 month).
ID | ItemID | Status | Date |
8 | 101 | OUT | 20/07/22 |
7 | 102 | IN | 15/07/22 |
6 | 106 | OUT | 15/07/22 |
5 | 105 | OUT | null |
4 | 106 | IN | 05/05/22 |
3 | 101 | OUT | 28/03/22 |
2 | 103 | OUT | 24/02/22 |
1 | 102 | IN | 15/02/22 |
ItemID | #Days |
102 | 155 |
103 | 146 |
105 | null |
Solved! Go to Solution.
@Twe-Maker , Create measures like
Rolling 3 = CALCULATE(countrows(filter(Table, Table[Status]="OUT")), DATESINPERIOD('Date'[Date ],MAX('Date'[Date ]),-3,MONTH))
Not out = countx(values(table[item ID]), if (Isblank([Rolling 3]), [item id], blank() ) )
@Twe-Maker , Create measures like
Rolling 3 = CALCULATE(countrows(filter(Table, Table[Status]="OUT")), DATESINPERIOD('Date'[Date ],MAX('Date'[Date ]),-3,MONTH))
Not out = countx(values(table[item ID]), if (Isblank([Rolling 3]), [item id], blank() ) )
Thank you
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 |
---|---|
113 | |
100 | |
78 | |
76 | |
52 |
User | Count |
---|---|
144 | |
109 | |
108 | |
88 | |
61 |