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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

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
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.