Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
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
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 41 | |
| 38 | |
| 36 | |
| 30 | |
| 28 |
| User | Count |
|---|---|
| 128 | |
| 88 | |
| 79 | |
| 67 | |
| 62 |