Forum Discussion
Chanleakna123
7 years agoPost Prodigy
Column Calculation not get right
Hi All , I have such below Table , Column of Purchase/No PUrchase ; Count are calculated in Edit Query , as of result this is the table : Customer Code Customer Name Date Value Purc...
- 7 years ago
Please check below dax.
Count = CALCULATE ( COUNT ( 'Energy Drink'[Customer Name - Store host code] ), FILTER ( ALLSELECTED ( 'Energy Drink' [Customer Name - Store host code]), [Repurchased/No Repurchased]= SELECTEDVALUE('Re-Purchased/No Repurchased'[Type]) ) )Regards,
Cherie
v-cherch-msft
7 years agoMicrosoft Employee
Please check below dax.
Count =
CALCULATE (
COUNT ( 'Energy Drink'[Customer Name - Store host code] ),
FILTER (
ALLSELECTED ( 'Energy Drink' [Customer Name - Store host code]),
[Repurchased/No Repurchased]= SELECTEDVALUE('Re-Purchased/No Repurchased'[Type])
)
)
Regards,
Cherie
Chanleakna123
7 years agoPost Prodigy
Hi v-cherch-msft you're brilliant , thanks for your quick help.