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
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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors