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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
joshua1990
Post Prodigy
Post Prodigy

COUNT Weeks with Value between Levels

Hi experts!

I have a simple DIVIDE Measure (Measure x) that shows me the Ration between two different measures:

DIVIDE ([Measure 1], [Measure 2]).

 

Now I would like to get the number of weeks where Measure X has values below 0.075 (7,5%).

I tried this using the logic:

CALCULATE (
    COUNTROWS ( VALUES ( 'Calendar'[Week] ) ),
    FILTER ( 'Calendar', [Measure X] >= 0 && [Measure X] < 0.075 )
) + 0

 

Unfortuntely this is not working. I always get 23 > Number of weeks this year so far.

 

Do I need COUNTX here?

1 ACCEPTED SOLUTION
tamerj1
Super User
Super User

@joshua1990 

Please try

Number of Weeks < 0.075 =
COUNTROWS (
    FILTER ( VALUES ( 'Calendar'[Week] ), [Measure X] >= 0 && [Measure X] < 0.075 )
)

View solution in original post

1 REPLY 1
tamerj1
Super User
Super User

@joshua1990 

Please try

Number of Weeks < 0.075 =
COUNTROWS (
    FILTER ( VALUES ( 'Calendar'[Week] ), [Measure X] >= 0 && [Measure X] < 0.075 )
)

Helpful resources

Announcements
November Fabric Update Carousel

Fabric Monthly Update - November 2025

Check out the November 2025 Fabric update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Users online (27)