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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

Measure help

Hello!

 

I'm trying to make a measure that counts the average of my driving index and then counts +1 every time an average between 80-100 occurs.

 

Averages = SUM(YhdistettyTaulu[drivingindex]) / COUNTX(YhdistettyTaulu;[drivingindex])
(This is my average driving index calculation so far).
 
Here's an example made by Excel what I'm trying to achieve. The axis should have numbers from 80 to 100.Here's an example made by Excel what I'm trying to achieve. The axis should have numbers from 80 to 100.
 
3 REPLIES 3
amitchandak
Super User
Super User

@Anonymous ,The information you have provided is not making the problem clear to me. Can you please explain with an example.
Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.
Appreciate your Kudos.

On Your measure

Averages = SUM(YhdistettyTaulu[drivingindex]) / COUNTX(YhdistettyTaulu;[drivingindex])

 

have measure like
Sumx(values(YhdistettyTaulu[drivingindex]), if([Averages]>80,1,0))

 

Replace values(YhdistettyTaulu[drivingindex]) with the level(column) where you want to group and check >80

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

@amitchandak

 

So i'm trying to calculate a daily average driving index for each driver and increment it to the corresponding driving index on the X-axis.

 

I do not know if this helps but I have my count on the Y-axis and driving index values from 80 to 100 on the X-axis. If a driver’s daily average index is 81 for example I want it to increment the 81 value on the X-axis by 1 and if another driver’s daily average index is 83 increment the value 83 by 1.I do not know if this helps but I have my count on the Y-axis and driving index values from 80 to 100 on the X-axis. If a driver’s daily average index is 81 for example I want it to increment the 81 value on the X-axis by 1 and if another driver’s daily average index is 83 increment the value 83 by 1.

@Anonymous ,Can you share sample data and sample output in table format?

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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