Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
I created at table from the data imported and whenever I chose the count feature it replaces the actual data with a "1" in order to provide a total count. Is there a way I can have the column maintain the data while still providing a total Count?
Example:
I have a column of Employee names, and I want to know how many employees there are total. If I turn on the Count feature, it replaces each name with a "1" and gives the total number at the bottom, but I still want to see the Employee Name for each record.
Solved! Go to Solution.
hi, @beardsleys
This relates to the row context and filter context in calculation
You could use COUNTA Function to create a measure, then drag Employee Name and this measure into visual together
For example:
Measure = CALCULATE(COUNTA(Table1[Name]))
Result:
Best Regards,
Lin
hi, @beardsleys
This relates to the row context and filter context in calculation
You could use COUNTA Function to create a measure, then drag Employee Name and this measure into visual together
For example:
Measure = CALCULATE(COUNTA(Table1[Name]))
Result:
Best Regards,
Lin
in Power Query, you can go to Add Column -->Index Column-->From 1
Or you can create a measure :
Count = COUNTROWS( Table )
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
109 | |
96 | |
77 | |
66 | |
54 |
User | Count |
---|---|
144 | |
104 | |
102 | |
88 | |
63 |