Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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?
Solved! Go to Solution.
Please try
Number of Weeks < 0.075 =
COUNTROWS (
FILTER ( VALUES ( 'Calendar'[Week] ), [Measure X] >= 0 && [Measure X] < 0.075 )
)
Please try
Number of Weeks < 0.075 =
COUNTROWS (
FILTER ( VALUES ( 'Calendar'[Week] ), [Measure X] >= 0 && [Measure X] < 0.075 )
)
User | Count |
---|---|
25 | |
10 | |
7 | |
6 | |
6 |
User | Count |
---|---|
30 | |
11 | |
11 | |
9 | |
7 |