Forum Discussion
Revathi_Kannan
4 years agoHelper I
COUNTROWS WITH MULTIPLE COLUMNS
Hi all, I am looking for the solution for the past 2 weeks but i am unable to find the DAX functions which i can do it in excel. Please refer the below image.. I have 2 columns but my result ha...
- 4 years ago
Hi,
Please check the below DAX formula and the attached pbix file.
It is for creating a new table.
New Table = ADDCOLUMNS ( VALUES ( Data[Employee] ), "@CategorySummary", CALCULATE ( IF ( COUNTROWS ( VALUES ( Data[Category] ) ) = 2, "BothCategory", VALUES ( Data[Category] ) ) ) ) - 4 years ago
Hi,
Please check the attached file.
Thanks.
Revathi_Kannan
4 years agoHelper I
SpartaBI Thanks for the reply. Yes left is my data table in power bi. I need the total no. of count for Team A, Team B and both category based on the Employees. I am just trying to create the measure so that i will show the result on my chart. Yes, right table is how my result wants to be..