Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

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.

Reply
Anonymous
Not applicable

Count within a group ?

CMNaam
ShowJan
No Show No Messageklaas
No Show With Message Jan
No Show No MessageJan
No Show No MessageJan
No Show No MessageKlaas
No Show With Message Jan
No Show With Message Klaas



I would like to count the number of "No Show No Message"  but only if "Show" doesnt exist for that user (for a selected period)

 

So the result of my measure would be: 2

( The 2 "No Show No Message" from Klaas, Jan isnt counted because he has an "Show"



3 REPLIES 3
v-xicai
Community Support
Community Support

Hi @Anonymous ,

 

You can create measure like DAX below.

 

Measure1= CALCULATE(COUNT(Table1[CM]),FILTER(ALLSELECTED(Table1), Table1[Naam] =MAX(Table1[Naam])&&Table1[CM]= "No Show No Message"))

 

Best Regards,

Amy

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Anonymous
Not applicable

Thanks for your reply.

 

But how do you account for the "Show" and the user(Naam) 

I any user(naam) has a "show" doesnt somewhere in the selected period the "No Show No message" should not count

Hi @Anonymous ,

 

I am not sure what desired result would you want, could you please share your sample data or desired output screenshots for further analysis? You can also upload sample pbix to OneDrive and post the link here. Do mask sensitive data before uploading.

 

Best Regards,

Amy

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.