Forum Discussion
Anonymous
7 years agoNot applicable
count value with filter
Hello, i have a data table with the 3 colums and i hope to get the last one: Identification number travel date Reservation class TYPE HAZERTY 11/01/2019 BI 1st class HAZERTY 15/...
- 7 years agoHi Jibril,Kindly try the below DAX, if it works accept this as solution & give kudos!Type =VAR Count_Flight = CALCULATE(DISTINCTCOUNT('A_R MALIN'[Reservation Class]),ALLEXCEPT('A_R MALIN','A_R MALIN'[Identification Number]))RETURNIF(Count_Flight>1,"Mix","1st Class")Regards,Saurabh
Zubair_Muhammad
7 years agoCommunity Champion
Anonymous
Seems you are just missing the earlier function
Column =
CALCULATE (
DISTINCTCOUNT ( 'A_R MALIN'[Reservation class] ),
FILTER (
'A_R MALIN',
'A_R MALIN'[identification number]
= EARLIER ( 'A_R MALIN'[identification number] )
)
)