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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Dax Measure not behaving as expected. % one values is of total amount needed.

Hi, 

 

I'm looking for a measure that calculates the % that <1 hour makes up of the total amount. 

 

I've created a DAX measure to calculate this, which to me looks to be correct however it is not displaying the correct results. I can't figure out what is the issue with it. Measure is as follows: 

 

% < than 1 Hour =
VAR TotalCount =
COUNT ( 'Table'[Ticket_Duration_Hours] )
VAR LessThanOneCount =
CALCULATE (
COUNT ( 'Table'[Ticket_Duration_Hours] ),
FILTER ( 'Table', 'Table'[Ticket_Duration_Hours] <= 1 )
)
RETURN
DIVIDE ( LessThanOneCount, TotalCount )


In the picture below you can see that if you do the calculations on the numbers from the top visual you can see that the % values are not correct.

 

Week 26 for example : 319 / 755 = 0.42

 

However the measure is giving the result of 49.54%

 

Any help as to resolving this would be great thankyou. 


DataLicious_0-1688556516383.png

 

1 REPLY 1
mlsx4
Memorable Member
Memorable Member

Hi! I would do it in separate measures to check what is happening. It is difficult to figure out the problem without the data, but it seems you need an ALL for the total tickets.

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI 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.

Top Solution Authors