Forum Discussion
VALUES ARE NOT COUNTED NORMALLY
Hi, I hope someone could help me with this..
Actually I have a table that a mesure counts normally as it should do, but when I delete the column "Category", the total count of projects regarding the category "Other" is only counted.
Table with category Column existing....
| Project | Category | Count |
| A | free | 2 |
| A | full | 5 |
| A | other | 6 |
| B | free | 4 |
| B | other | 15 |
| B | full | 10 |
| C | full | 7 |
| C | other | 12 |
| C | free | 5 |
Behavior of the table when CATEGORY column is deleted. The category Full and Free are not included, it only shows Other
| Project | Count |
| A | 6 |
| B | 15 |
| C | 12 |
Otherwise, the table must show as this:
| Project | Count |
| A | 13 |
| B | 29 |
| C | 24 |
I look forward to any comments please
- Anonymous2 years ago
Hi gkarlo ,
Please try this measure:Measure = CALCULATE(COUNT('Table'[Project]),ALLEXCEPT('Table','Table'[Project]))Best Regards,
Gao
Community Support TeamIf there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!How to get your questions answered quickly -- How to provide sample data in the Power BI Forum -- China Power BI User Group
4 Replies
- tharunkumarRTK
Super User
gkarlo
What is the measure definition and would you mid sharing the pbix file?- gkarlo
Helper I
Def MEASURE= Distinctcount('Table'[Project])
The file I cannot share for confidentiality reasons 😞
- tharunkumarRTK
Super User
If assume the project column in your measure and project column in your table visual are same then distinctcount should give you the following result, I am wondering how you result is different
Project DistinctCountA 1
B 1
C 1If the post helps please give a thumbs up
If it solves your issue, please accept it as the solution to help the other members find it more quickly.
Tharun
- AnonymousNot applicable
Hi gkarlo ,
Please try this measure:Measure = CALCULATE(COUNT('Table'[Project]),ALLEXCEPT('Table','Table'[Project]))Best Regards,
Gao
Community Support TeamIf there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!How to get your questions answered quickly -- How to provide sample data in the Power BI Forum -- China Power BI User Group