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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
oskarcph
Frequent Visitor

DAX formula different requirements

CompanyErrorcodeReponsible(Yes/no)
A1XYes
A2XYes
A3XYes
A4XNo
B1XYes
B2XYes
B3XYes
B4XYes
C1XNo 
C2XNo
C3XYes
C4XYes

 

Hi Community 

I am working within the logitics industry where we deal with different clients, every client (Company) has a different contract telling if we are reponsible for a error code or not. See the table as an example. I need to create a KPI for our performance of all total companies, I have tried just to make a dax formula to calcuate the overall perfomance and then put a filter on "Reponsible = Yes" but for it example then it includes errorcode 1x for company A, since 1x is marked yes for company B. 


Hope it makes sense and you can help 🙂 

1 ACCEPTED SOLUTION

Hi Jianbo  

 

I solved it by merging multiple tables in query, so this post is not relevant anymore, do you know If I can delete it? 

View solution in original post

6 REPLIES 6
v-jianboli-msft
Community Support
Community Support

Hi @oskarcph ,

 

Could you tell me if your problem has been solved? If it is, kindly Accept it as the solution. More people will benefit from it. Or if you are still confused about it, please provide me with more details about your table and your problem or share me with your pbix file after removing sensitive data.

 

Refer to:

How to provide sample data in the Power BI Forum

How to Get Your Question Answered Quickly

 

Best Regards,

Jianbo Li

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi Jianbo  

 

I solved it by merging multiple tables in query, so this post is not relevant anymore, do you know If I can delete it? 

Hi @oskarcph ,

 

Since your problem has been solved, you may consider Mark your own reply, so that the post will go to the closed state, other users with similar problems can be inspired by your posting, so that you can better help others.

 

Best Regards,

Jianbo Li

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

oskarcph
Frequent Visitor

Hi @tamerj1 

 

Sorry for not being specific,  I am looking for ideas/help for have I can make the dax formular to calculate "our" performance on errors. 

 

Let say we have 100 operations of all three companies (A,B,C) 

we make 10 errors 1x for company A, then our performence is 90%, but if there is a 1x error in the database for company C (which we are not reponsible for) then the calculating formula I have made give the results of 89%

 

Hope this makes sense 🙂 

 

@oskarcph 

I think it is better to provide the expected results for the given sample of data. 

tamerj1
Super User
Super User

Hi @oskarcph 
Thank you for posting the quetion. Would you please clarify further?

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.