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'm trying to add another column to "Table 1" basically saying what's the latest movement from 3 months ago per account(it should be "installs" only). Table 2 should be the lookup table. Criteria should be the same account no. and item.
I wanted this to be in a matrix, so i'm not sure if calc column should be the correct response or measure maybe? Please advise. Thank you!
Table 1
Period (YYYY-MM-DD) | Account no. | Item |
20220301 | 617326299 | 2SFEM |
20220301 | 617326299 | 1SFEM |
Table 2
Period (YYYY-MM-DD) | Account no. | Movement | Item |
20220102 | 617326299 | Installs | 2SFEM |
20220103 | 617326299 | Recon | 2SFEM |
20220104 | 617326299 | Discon | 1SFEM |
Result
Period (YYYY-MM-DD) | Account no. | Item | Installs 3Months |
20220301 | 617326299 | 2SFEM | Yes |
20220301 | 617326299 | 1SFEM | No |
Solved! Go to Solution.
is this what you want
Proud to be a Super User!
not clear about the 3 month ago. it looks like the date of install is only two month ago. could you pls clarify more about this?
maybe you can try below DAX to create a column
Column =
VAR _install=maxx(FILTER('Table 2','Table 1'[Account no.]='Table 2'[Account no.] &&'Table 1'[Item]='Table 2'[Item] && 'Table 2'[Movement]="installs"),'Table 2'[Movement])
return if(_install="","N","Y")
Proud to be a Super User!
Hello @ryan_mayu
Thanks for the response. Apologies for the confusion, the example above should be correct since I also count march from the "3 months" ago criteria.
Also, from your calc column, what if the account had been installed in December 2021? the formula would return "Yes". I just need specifically from 3 months ago (January).
In the future, I might use the formula also for the "2 months ago" criteria or "within the month". I hope this clarifies my concern.
is this what you want
Proud to be a Super User!
Thanks @ryan_mayu. Can you please send me the sample file? For some reason 'Table 1'year(date) = 'Table 2'year(date) is not working.
pls see the attachment below
Proud to be a Super User!
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 |
---|---|
109 | |
98 | |
80 | |
64 | |
57 |
User | Count |
---|---|
145 | |
110 | |
91 | |
84 | |
66 |