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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
knamburi
Frequent Visitor

Calculating percentage of difference from total dataset average to a particular row

Hello All,

 

Looking for suggestion to solve a problem

 

triptime (column C ) is a measure column 

 

now i want to find the total average - of trip time which is 322.84 in this case and want to calculate how each driver is doing against average.

I tried using CALCULATE(AVERAGE(measure))  and few other methods but did not work

 

below is the example to calculate Average %

 

knamburi_0-1708125705564.png

 

any help is appreciated. 

 

Regards,

K

 

1 ACCEPTED SOLUTION
Ahmedx
Super User
Super User

Based on your description, I created data to reproduce your scenario. The pbix file is attached in the end.

Screenshot_1.png

View solution in original post

4 REPLIES 4
knamburi
Frequent Visitor

Thank you so much - this really solved my problem. Missing REMOVEFILTERS() - i never thought about it

 

But i have another question, this will disable all the filters - how can i exclude few specific - like i want to use few - i tried using KEEPFILTERS() but i guess its not working as expected.

to exclude something specific you need to use ALLEXCEPT functions
or additionally write VALUES:

m1 = CALCULATE(
[total average],REMOVEFILTERS(),VALUES('table'[Category]),
VALUES('table'[Year]))
Ashish_Mathur
Super User
Super User

Hi,

Share the download link of the PBI file.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Ahmedx
Super User
Super User

Based on your description, I created data to reproduce your scenario. The pbix file is attached in the end.

Screenshot_1.png

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
Top Kudoed Authors