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
arythedj
Helper I
Helper I

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

@arythedj , 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])

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@arythedj , 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])

@amitchandak it works like a charm.

Thank you so much!

 

Ary

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.