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 hoping someone may have tackled a problem similar to mine. I have a table similar in structure to the one below and I want to add a column that dynamically populates with a '1' IF it is the last date that store was visited within that Period.
Visit ID | Store ID | Question | Answer | Period | Date | LastRead? |
1 | A | Question 1 | 1 | 01/01/2017 | ||
1 | A | Question 2 | 1 | 01/01/2017 | ||
2 | A | Question 1 | 1 | 02/01/2017 | 1 | |
2 | A | Question 2 | 1 | 02/01/2017 | 1 | |
3 | A | Question 1 | 2 | 03/05/2017 | 1 | |
3 | A | Question 2 | 2 | 03/05/2017 | 1 | |
4 | B | Question 1 | 1 | 05/01/2017 | ||
4 | B | Question 2 | 1 | 05/01/2017 | ||
5 | B | Question 1 | 1 | 10/02/2017 | 1 | |
5 | B | Question 2 | 1 | 10/02/2017 | 1 |
Thanks 🙂
Solved! Go to Solution.
Perhaps a measure like:
Measure = IF([Date]=CALCULATE(MAX([Date]),ALLEXCEPT([Period],[Store])),1,0)
Perhaps a measure like:
Measure = IF([Date]=CALCULATE(MAX([Date]),ALLEXCEPT([Period],[Store])),1,0)
Thanks for this - it worked perfectly!
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 |
---|---|
115 | |
99 | |
86 | |
70 | |
62 |
User | Count |
---|---|
151 | |
120 | |
103 | |
87 | |
68 |