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 data set similar to the one below. I want to highlight/identify the best result (where answer = 'yes') for each question for each store within a given period. Only one best result should be highlighted given the criteria above so something like the first or last best result would be fine. I have added the intended result in the last column below.
Visit ID | Store ID | Question | Answer | Period | Date | BestRead? |
1 | A | Question 1 | Yes | 1 | 01/01/2017 | 1 |
1 | A | Question 2 | Yes | 1 | 01/01/2017 | 1 |
2 | A | Question 1 | Yes | 1 | 02/01/2017 | 0 |
2 | A | Question 2 | Yes | 1 | 02/01/2017 | 0 |
3 | A | Question 1 | Yes | 2 | 03/05/2017 | 1 |
3 | A | Question 2 | Yes | 2 | 03/05/2017 | 1 |
1 | B | Question 1 | Yes | 1 | 05/01/2017 | 1 |
1 | B | Question 2 | No | 1 | 05/01/2017 | 0 |
2 | B | Question 1 | No | 1 | 10/05/2017 | 0 |
2 | B | Question 2 | Yes | 1 | 10/05/2017 | 1 |
What I have been trying is:
Any help would be appreciated!
Thanks
Hi @hassens,
>>I want to highlight/identify the best result (where answer = 'yes') for each question for each store within a given period.
You can try to use below formula to summary records by "question" and "period".
Table = SUMMARIZE(FILTER(ALL(Sheet1),[Answer]="Yes"),[Store ID],[Question],[Period],"Total Read",SUM(Sheet1[BestRead?]))
I haven't found a way to highlight records which in the table.
Regards,
Xiaoxin Sheng
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 |
---|---|
96 | |
95 | |
83 | |
70 | |
66 |
User | Count |
---|---|
118 | |
106 | |
93 | |
79 | |
72 |