cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ItSupportElm
Helper III
Helper III

If different value to same reference then false for all

Hello everyone,

 

Hope you good, i need your help please about an issue :

 

2021-04-07_10h32_30.png

 

I have the same "IdRetour" for different reference, and i want if one of "PriseEnGarantie" is False all the reference return False, the three IdRetour "107" is false.

 

Thank for the futur answer, and sorry if my english is not that good.

Good Day

2 REPLIES 2
amitchandak
Super User
Super User

@ItSupportElm , Create a new column as

new column =
var _cnt = countx(filter(Table, [IdRetour] = earlier([IdRetour]) && [PriseEnGarantie]=false()),[PriseEnGarantie])+0
return
if(_cnt >0, false(), true())

Thank you for ansering o quickly @amitchandak  , i try your formula but it didnt work im in direct query i dont know if it change anything.

 

here the error : 

2021-04-07_13h14_54.png

Helpful resources

Announcements
Vote for T-Shirt Design

Power BI T-Shirt Design Challenge 2023

Vote for your favorite t-shirt design now through March 28.

March 2023 Update3

Power BI March 2023 Update

Find out more about the March 2023 update.

March Events 2023A

March 2023 Events

Find out more about the online and in person events happening in March!