Forum Discussion
Anonymous
6 years agoNot applicable
Count values for a column while filtering another column
Hi Power BI Comunity, please help I need to count values for column "Items_Category" in Power BI, if my source only gives me 2 columns- Category & Items? Items_Category is the output in 3rd column/...
Pragati11
6 years agoSuper User
Hello @Gguliani ,
Try creating a column like the following:
CountCalc ? CALCULATE(SUM(tablename[Items]), FILTER(tablename, tablename[Category] ? EARLIER(tablename[Category] )))
Thank you
Pragati
Anonymous
6 years agoNot applicable
Getting an error Pragati11 , field names and table names are different than dummy values asked in the query