Forum Discussion
Lauraeire_81
1 year agoHelper I
Count values in categories
Hi I have the following table: Food Category Food American Hot Dogs Irish Hot Dogs Italian Pasta American Fries Irish Ham and Cabbage Irish Shepherds pie America...
- 1 year ago
Hi Lauraeire_81 ,As we haven’t heard back from you, we wanted to kindly follow up to check if the solution provided for the issue worked? or Let us know if you need any further assistance?
If our response addressed, please mark it as Accept as solution and click Yes if you found it helpful.
Regards,Chaithanya
Khushidesai0109
1 year agoSkilled Sharer
Hiii Lauraeire_81
Measure 1: Count of Foods that are only American
Only_Ameican_Count =
VAR AmericanFoods =
FILTER(
VALUES('Table'[Food]),
CALCULATE(DISTINCTCOUNT('Table'[Food Category]), ALL('Table')) = 1
&& MAX('Table'[Food Category]) = "American"
)
RETURN
COUNTROWS(AmericanFoods)