cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

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

 

Sample.png

1 REPLY 1
ntaylo06 Regular Visitor
Regular Visitor

Re: Convoluted Dax Counter

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. 

Helpful resources

Announcements
Virtual Launch Event

Microsoft Business Applications October Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

Power BI Helps Homeless and Trouble Youth

Power BI Helps Homeless and Trouble Youth

We spoke with Power BI Super User, Greg Deckler, about his charity work

MBAS Gallery

Watch Sessions On Demand!

Continue your learning in our online communities.

Users Online
Currently online: 237 members 2,712 guests
Please welcome our newest community members: