Showing results for 
Search instead for 
Did you mean: 
RizzLearn Frequent Visitor
Frequent Visitor

Conditional Count and Group

Hi All, 

I would be really grateful if the gurus can help me with some DAX. I am pretty new to DAX.

So, I have created conditional measures based on Count: AESGroup1, AESGroup2 etc.

I am in need of Group them by total of the counts. i.e Total count of AESGroup1, AESGroup2  by GroupName .

Example, Sytner Group :  AESGroup1  AESGroup2 etc

                             Total:     20                  32


Many thanks in advance. 



Community Support Team
Community Support Team

Re: Conditional Count and Group

Hi @RizzLearn ,

I still have a little confused about your scenario.

It seems that you have two measures for AESGroup1, AESGroup2, do you want to group the two measures?

Or do you want to group the total counts ?

If it is convenient, could you share some data sample and your desired output so that we could help further on it?

Best Regards,



Community Support Team _ Cherry Gao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
RizzLearn Frequent Visitor
Frequent Visitor

Re: Conditional Count and Group

Hi Cherry Gao,

Thanks a million for looking into this. Please find a dataset here

What we like to achieve are:

1. Count of Quote_id by Group by SuperUser/Super parentID by AES OR ECOS. 

i.e for SuperUSerID 1302 / Paul Marjoram has  10 Quotes For ECOS and he is part of Chapmobile.

2.  Then Group them by total. Example In Chapmobile Group. 1 User have 10 Quotation for AES

I have tried to explain it here

3. Also is it possible to show how many SuperUsers have an entry on BOTH AES and ECOS.

i.e SuperParentid 12783/ PIERS CAPLETON has an entry on BOTH AES AND ECOS

I really need help on this. Many thanks in advance and if you need any further info just let me know.



Helpful resources

October 2019 Community Highlights

October 2019 Community Highlights

October was a busy month in the community. Read the recap article to learn about some of the events and content.

New Badges

Incoming: New and Improved Badges

Exciting news: We've given our badges an overhaul and added brand news ones.

Ask Amir Anything

Exclusive LIVE Community Event No. 2 – Ask Amir Anything

Next in our Triple A series: Ask Amir Netz questions about the latest updates, features and future.

Analytics in Azure virtual event

Analytics in Azure virtual event

Experience a limitless analytics service built to ingest, prep, manage, and serve data for immediate use in Power BI.

Users Online
Currently online: 292 members 2,866 guests
Please welcome our newest community members: