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.
Hello Communnity,
Happy new year !
Can you pplease help me writing this DAX formula :
I've to find conversion from NF customers to Fin Customer in last 360 days, when customer has aquired Financial product in calendar year. I looking to create column for it.
For Example, if customer has aquired Financial product on 15,Feb 2021 then Code check last 360 days to find if he had NF product. If customer had NF product then mark it "Y".
I am badly stuck in writng DAX formula, so would be grateful for any suggestions.
Chana
ID | Product | Financial Product Aquired (Calendar Year ) | Transaction Date | Conversion (NF-> F) |
1 | NF | N | 5-May-20 | |
1 | F | Y | 6-Feb-21 | Y |
2 | NF | N | 3-Apr-20 | |
2 | NF | N | 1-Jan-21 | |
3 | NF | N | 2-Jan-20 | |
3 | F | Y | 4-Sep-21 | |
4 | NF | N | 25-Nov-20 | |
4 | F | Y | 14-Jul-21 | Y |
</p body>
Solved! Go to Solution.
@Anonymous
This seems to work:
Proud to be a Super User!
Hi,
Here is one way to do this with a measure:
I hope this post helps to solve your issue and if it does consider accepting it as a solution and giving the post a thumbs up!
Proud to be a Super User!
@ValtteriN Thankyou so mcuh for code.
I need it in column as I have to further use it to filter data.
Hi,
Here is the column version:
Proud to be a Super User!
I have to apply Financial Product Aquired filter in the code , so that it only gives conversion for the customers who had aquired Financial products and in the past (360 days ) they had NF products. Can suggest where to apply that filter in code . Thnanks
Here should suffice:
Proud to be a Super User!
Hi @ValtteriN , this is not working on my end can you please suggest. I have added filter product acquired is Y. As I need conversion for only those that have actually aquired the Financial product only .
@Anonymous
This seems to work:
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 |
---|---|
49 | |
26 | |
20 | |
15 | |
12 |
User | Count |
---|---|
57 | |
49 | |
43 | |
19 | |
18 |