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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

Measure to Count only if it's more than once

Hi, I have a report like below:

 

arythedj_2-1593150710543.png

 

The data is like below:

 

arythedj_1-1593150592710.png

 

As you cans see, my current slicer is for Zone ID = 7 and date from 15th June to 17th June.

Total Orders = 9 (in above image there are 9 rows of order_id)

Totac Customers = 6 (in above image, there are 6 unique values of Customer ID)

 

In my report, I need to add another measure for Total Customers who make more than 1 order. In this example the result should be 3. So report should look like this:

arythedj_3-1593150920865.png

Really appreciate it if someone can help me.

 

Regards,

Ary

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Anonymous , Not sure about order id column and its aggregation,

Assumed order id and count for that.

 

Try like

countX(filter(summarize(Table, Table[customer_id], "_1", count([Order ID])),[_1]>1),[customer_id])

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@Anonymous , Not sure about order id column and its aggregation,

Assumed order id and count for that.

 

Try like

countX(filter(summarize(Table, Table[customer_id], "_1", count([Order ID])),[_1]>1),[customer_id])

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

@amitchandak it works like a charm.

Thank you so much!

 

Ary

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors