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 again folks.
I'm trying to create a calculated column in this table:
| Key | Sprint |
| D2C-176 | Sprint 08 |
| D2C-176 | Sprint 09 |
| D2C-391 | Sprint 10 |
| D2C-391 | Sprint 11 |
| D2C-545 | Sprint 11 |
| D2C-545 | Sprint 13 |
| D2C-635 | Sprint 10 |
| D2C-635 | Sprint 12 |
| D2C-635 | Sprint 13 |
that results in this
| Key | Sprint | Rept |
| D2C-176 | Sprint 08 | |
| D2C-176 | Sprint 09 | 1 |
| D2C-391 | Sprint 10 | |
| D2C-391 | Sprint 11 | 1 |
| D2C-545 | Sprint 11 | |
| D2C-545 | Sprint 13 | 1 |
| D2C-635 | Sprint 10 | |
| D2C-635 | Sprint 12 | 1 |
| D2C-635 | Sprint 13 | 1 |
Can anyone help me?
TY guys
Solved! Go to Solution.
You can try something like this:
Rept =
VAR varKey = table[Key]
VAR varSprint = table[Sprint]
VAR varSprintMin =
CALCULATE ( MIN ( table[Sprint] ), table[Key] = varKey )
RETURN
IF ( varSprint = varSprintMin, BLANK (), 1 )
varKey saves current key as variable
varSprint saves current sprint as variable
varSprintMin calculates minimum of sprints for all rows with same key as current key
return value: if current sprint is minimum of sprints with same key, returns BLANK, else 1
-- editted for formating reasons
@Anonymous
Give this a try.
Rept =
VAR _Key = 'YourTable'[Key]
VAR _Sprint = 'YourTable'[Sprint]
VAR _MinSprint =
CALCULATE ( MIN ( 'YourTable'[Sprint] ), ALL ( 'YourTable' ), 'YourTable'[Key] = _Key )
RETURN
IF ( _Sprint = _MinSprint, BLANK (), 1 )
You can try something like this:
Rept =
VAR varKey = table[Key]
VAR varSprint = table[Sprint]
VAR varSprintMin =
CALCULATE ( MIN ( table[Sprint] ), table[Key] = varKey )
RETURN
IF ( varSprint = varSprintMin, BLANK (), 1 )
varKey saves current key as variable
varSprint saves current sprint as variable
varSprintMin calculates minimum of sprints for all rows with same key as current key
return value: if current sprint is minimum of sprints with same key, returns BLANK, else 1
-- editted for formating reasons
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 57 | |
| 45 | |
| 42 | |
| 20 | |
| 18 |