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
Jit007
Helper II
Helper II

Exclude data from overall calculations

Need help on this scenerio :  PBIX file 

I have two tables as below 

1 table- Raw data Score from database

2 table- Analyzed data only for score=1 

For New avarage - I'm trying to show here after analyzing the 1 score TK data where the fault grp is not same grp name as per raw data then exclude those tickets from overall aveg calculations & include only TK data 1 score where fault grp & grp name is same in both tables & other TK as it is as per shown below 

how to get this in power bi..Thanks

 

Jit007_2-1741193222520.png

 

 

Jit007_1-1741192993646.png

@Ashish_Mathur 

1 ACCEPTED SOLUTION
Ashish_Mathur
Super User
Super User

Hi,

PBI file attached.

Hope this helps.

Ashish_Mathur_0-1741220664630.png

 


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

View solution in original post

6 REPLIES 6
Ashish_Mathur
Super User
Super User

Hi,

PBI file attached.

Hope this helps.

Ashish_Mathur_0-1741220664630.png

 


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

Measure = if(HASONEVALUE('Table 1'[TK #]),[Avg],CALCULATE([Avg],'Table 1'[FG]<>"Other grp"))
 
What if i have other group name in coloumn instead of  only"Other grp". i.e.- New Group, Diff group, inactive group 
Is there anyway i can refer only if = ABC or XYZ then calculate the avg & if not ignore..Thanks
 

Hi,

You mean something like this

Measure = if(HASONEVALUE('Table 1'[TK #]),[Avg],CALCULATE([Avg],'Table 1'[FG]="ABC"||'Table 1'[FG]="XYZ"))

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

Hi,

You mean something like this

Measure = if(HASONEVALUE('Table 1'[TK #]),[Avg],CALCULATE([Avg],'Table 1'[FG]="ABC"||'Table 1'[FG]="XYZ"))

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

Jit007_1-1743003637396.png

 

File 

I'm struggling to get this solution as added NEW Score column - if in analyzed 2nd table the fault group is not same as raw table- attached same PBIX file 

 

Hi,

Not sure of what you want.  Explain the question and show the expected result.


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

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