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
I have this table i need create a column with dax call "Pilo", but i have condicions for the value 1 o 0 , is the colunm (Id Año sem Beca) have the same value put 1 when see for frist time but is apper anotther value with the 4 columns equal put Zero. Like the next example.
Thx for help.
| Id | Año | sem | Beca | Pilo | |||
| U00097435 | 2015 | Sem 1 | BI14 - | 1 | |||
| U00097435 | 2015 | Sem 1 | BI14 - | 0 | |||
| U00097435 | 2015 | Sem 2 | BI14 - | 1 | |||
| U00097435 | 2016 | Sem 1 | BI14 - | 1 | |||
| U00097435 | 2016 | Sem 1 | BI14 - | 0 | |||
| U00097435 | 2016 | Sem 2 | BI14 - | 1 | |||
| U00097435 | 2017 | Sem 1 | BI14 - | 1 | |||
| U00097435 | 2018 | Sem 1 | BI14 - | 1 | |||
| U00097435 | 2018 | Sem 1 | BI14 - | 0 |
Hello , the only adictional column i see and is diferrent is
Periodo
15
45
75
15
45
75
15
45
97
Please try
Pilo =
INT (
'Table'[Periodo]
= CALCULATE ( MIN ( 'Table'[Periodo] ), ALL ( 'Table'[Periodo] ) )
)
Hi @Edinson_33
do you have other columns in the table like date or index or anything that distinguishes between the two duplicate rows?
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 |
|---|---|
| 20 | |
| 10 | |
| 9 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 34 | |
| 31 | |
| 19 | |
| 12 | |
| 10 |