Forum Discussion
Kate_McCulloch
1 year agoRegular Visitor
Count based on disticnt value in another column
Hi Wondering if anyone could help, I'm trying to do a total cost count for accommodation, but only want to count the value once based on the Family ID (distinct count) If anyone could help I ...
- 1 year ago
Kate_McCulloch , Try using a measure for this
DAX
TotalCostByFamilyID =
SUMX(
SUMMARIZE(
YourTableName,
YourTableName[Family_ID],
"DistinctCost",
MAX(YourTableName[Total Cost Accommodation])
),
[DistinctCost]
)
Kate_McCulloch
1 year agoRegular Visitor
worked exactly how I needed it too thank you