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
Disco2021
Frequent Visitor

calculate grouping measure by table

Hello all !
i have one problem 
I want to calculate a measure from a table that shows the number of orders by (country, city, group) in the table with customers (last column in example table)

example my table on report page : 
example.PNG

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Disco2021 , Create a measure like given example

 

countx(filter(allselected(Table),[country] =max([country]) && [city] = max([city] ) && [group] = max([group])), [cutomer ID])

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@Disco2021 , Create a measure like given example

 

countx(filter(allselected(Table),[country] =max([country]) && [city] = max([city] ) && [group] = max([group])), [cutomer ID])

Thanks! it is worked! 🙏

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.