This is best Fabric, Power BI, SQL and AI community event. How do we know? The last event sold out! Save €200 with code FABCMTY200.
Register nowA new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.
I am creating a power bi report based on monthly survey data. One of the question is productivity gain. I want to identify users based on following criteria:
| Survey Date | User | productivity |
| 1/1/2023 | A | 30 |
| 2/1/2023 | A | 30 |
| 3/1/2023 | A | 45 |
| 4/1/2023 | A | 33 |
| 1/1/2023 | B | 30 |
| 2/1/2023 | B | 35 |
| 1/1/2023 | C | 20 |
| 2/1/2023 | C | 30 |
| 3/1/2023 | C | 40 |
| 1/1/2023 | D | 45 |
| 2/1/2023 | D | 45 |
| 4/1/2023 | D | 45 |
Expected Output
| User | Flag Super User |
| A | N |
| B | N |
| C | Y |
| D | Y |
I tried couple of DAX formula's but the output isn't what is expected in the above sample data.
Solved! Go to Solution.
Hi,
PBI file attached.
Hope this helps.
this works perfectly. thank you so much. I appreciate your help
You are welcome.
Hello @PoojaG,
Can you please try this:
1. Count Surveys per User
Survey Count = COUNTROWS('Survey')
2. Flag Users Based on Criteria
Flag Super User =
VAR CurrentUser = 'Survey'[User]
VAR SurveyCount = CALCULATE(COUNTROWS('Survey'), FILTER('Survey', 'Survey'[User] = CurrentUser))
VAR FirstProductivity = CALCULATE(MIN('Survey'[productivity]), FILTER('Survey', 'Survey'[User] = CurrentUser), ALL('Survey'))
VAR LastProductivity = CALCULATE(MAX('Survey'[productivity]), FILTER('Survey', 'Survey'[User] = CurrentUser), ALL('Survey'))
RETURN
IF(SurveyCount > 2 && LastProductivity >= FirstProductivity, "Y", "N")
Hope this helps.
this solution may not consider all the in between survey results. only the first and the last.
Check out the May 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 26 | |
| 25 | |
| 22 | |
| 19 | |
| 17 |
| User | Count |
|---|---|
| 42 | |
| 41 | |
| 40 | |
| 21 | |
| 20 |