Forum Discussion
cottrera
Post Prodigy
4 years agoDAX count blank results
Hi
I have a table visual with teams i the rows and a measure calculating two sets of results Good and Bad.
I would like to a new measure that counts the number of teams that have no results from the Good measure and place this result in a card visual.
| Team | Good (DAX measure) | Bad (DAX measure) |
| A | 30 | 12 |
| B | 2 | 45 |
| C | 40 | 56 |
| D | 25 | |
| E | 23 | |
| F | 23 | |
| G | 3 | 3 |
thank you
RIchard
Hi cottrera ,
create a measure like below:-
measure = calculate(count(table[teams],[Good] = BLANK())Thanks,
Samarth
2 Replies
- Samarth_18
Community Champion
Hi cottrera ,
create a measure like below:-
measure = calculate(count(table[teams],[Good] = BLANK())Thanks,
Samarth
- cottrera
Post Prodigy
Hi Samarth
thank you for coming back so quickly. Appologies I probably did not explain my question clearly.I have a large data set roughtly like this one.
Team Year Result A 2020 Good A 2021 Bad A 2022 Good A 2021 Good A 2021 Bad B 2020 B 2021 Good B 2021 Good B 2021 Good B 2021 C 2020 Bad C 2021 Bad C 2019 Bad C 2021 Good C 2021 Bad D 2020 Good D 2021 Bad D 2019 Bad D 2021 Good D 2021 Bad E 2020 Good E 2021 Bad E 2019 Bad E 2021 Bad E 2021 Good F 2020 Good F 2021 Good F 2019
I have then pulled this data into the tableAnd summarised like this
TeamGoodBadA 2 3 B 3 C 4 1 D 3 2 E 3 2 F 4 G 2 3 Its at this point I need a measure to count the blanks by team for good.
Thanks
Richard