Forum Discussion
Convoluted Dax Counter
I have a situation where I have to create a variety of different counters.
I need counters that does this:
1) For every MP, count Location 1.
2) For every MP, count Location 2.
3) For [Location 1] check to see if [MP] is blank or not, if [MP] is not blank check to see if [Group] is not blank, count every [Location 1] in group.
4) Same thing for Location 2.
Really need help with this here is a graphic of a sample dataset. Thank you
1 Reply
- ntaylo06
Resolver II
1) MP and L1 Counter = CALCULATE(COUNTA('Table'[Location 1]), NOTBLANK('Table'[MP]) + 0
2) MP and L2 Counter = CALCULATE(COUNTA('Table'[Location 2]), NOTBLANK('Table'[MP]) + 0
3) MP Group and L1 Counter = CALCULATE(COUNTA('Table'[Location 1]), NOTBLANK('Table'[MP], NOTBLANK('Table'[Group]) + 0
3) MP Group and L2 Counter = CALCULATE(COUNTA('Table'[Location 2]), NOTBLANK('Table'[MP], NOTBLANK('Table'[Group]) + 0
Let me know if I missunderstood.