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
itsmebvk
Continued Contributor
Continued Contributor

How to Count number of Sundays more than X Orders?

 

Hi Folks,,

I am trying to create measure to count numbers of Sunday we have more than 50 order numbers.

 

When I crate measure using following DAX its showing all rows which have orders (total 149 rows have orders) instead of showing only 15 days where I have more than 50 orders as highlighted.

 

Sample FIle Attached 

 

 

Number_Of_Sundays = CALCULATE(DISTINCTCOUNT('Date'[Date]),
FILTER(Sales,DISTINCTCOUNT(Sales[Order Number])>50 && RELATED('Date'[Week_Day_Num])=1))

 

 

itsmebvk_0-1703335059552.png

 

Please correct the mistake I doing. I have attched sample file to this post.

 

Thanks in advance.

BVK

 

1 ACCEPTED SOLUTION
Ahmedx
Super User
Super User

Is this what you are looking for?

Screenshot_2.png

View solution in original post

2 REPLIES 2
Ahmedx
Super User
Super User

Is this what you are looking for?

Screenshot_2.png

itsmebvk
Continued Contributor
Continued Contributor

 

Thanks alot @Ahmedx  fro prompt reply. 

 

Yes, you corrected my mistake. That's exactly what I am looking for. I think I need to think bit more than what I am now.

 

Thanks again.

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.