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

Same ID with different reference , if one of them are false then all false

Hello,

 

I trie to display data who have same IdRetour but different reference , the reference Guaranty is false or true, i want to the same IdGroup if one of the reference of the IdRetour then all become False.

 

2021-04-07_10h32_30.png

expected : 

 

IdRetourReferencePriseEnGarantie
1078716774182False
10787167728690False
1078716774182False

 

I'am in Direct Query , someone can show me the path to the solution please ?

 

Thank you

1 REPLY 1
amitchandak
Super User
Super User

@ItSupportElm , Create a new measure and try

 

PriseEnGarantie measure =
var _cnt = countx(filter(allselcted(table), Table[IdRetour] = max(Table[IdRetour]) && [PriseEnGarantie] = false()),[IdRetour])
return
if(not(isblank(_cnt)), false(), max( table[[PriseEnGarantie] ))

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!