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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.