Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Edinson_33
New Member

create column using dax value repeats

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.

 

IdAñosemBecaPilo   
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   

 

3 REPLIES 3
Edinson_33
New Member

Hello , the only adictional column i see  and is diferrent is

Periodo

15

45

75

15

45

75

15

45

97

 

 

 

@Edinson_33 

Please try

Pilo =
INT (
'Table'[Periodo]
= CALCULATE ( MIN ( 'Table'[Periodo] ), ALL ( 'Table'[Periodo] ) )
)

tamerj1
Super User
Super User

Hi @Edinson_33 

do you have other columns in the table like date or index or anything that distinguishes between the two duplicate rows?

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.