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

The FabCon + SQLCon recap series starts April 14th at 8am Pacific. If you’re tracking where AI is going inside Fabric, this first session is a can't miss. Register now

Reply
Anonymous
Not applicable

Calculating 2 different values from the same table and adding a total collumn

Hello,

 

I'm still learning about power bi and I while working i got into a problem.
I have a matrix with a list of servers. Whenever I open it, the operative systems that had errors in that specific server will apear.

To make it clear this matrix has 3 parts of data. Servers, Operative Systems and error level
I can't show the actual table since is not allowed by the company policy but i tried yo recreate one with random values and names just to exemplify. (All the data is attached in the end of the text.)


In this matrix one of my jobs was to create a mesure (that actually one of the Microsoft Power BI super users helped me creating it: [ "Click here to see the conversation"  ]) that made only the servers with both errors (level 4 and 5) appear (I called that measure, "filter"). All the others would be hidden. Now I need to add a total collumn to know how many problems that server had, but still, with only the values of the servers with both level of errors.

Also in this total table I should be able to order the rows from the highest to the lowest. This can probably be made either by DAX or with that little arrow that pops in the lower right corner of most of the headers. You are free to use the one that is easier. I know that in the "format" area is possible to add the total table automatically but since both error values (4 and 5) are actually in the same collumn of excel, Power BI cannot understand it to calculate the sum of both values. I'll add the excel and power bi exemples I created and hope someone could help me.

 

I know it was confuse but I can try to explain better if needed.

Also I'm sorry for my awfullEnglish.

 

 

 

Attachments

 

 

Excel table:

Prata_Jose_6-1653043063054.png

 

 

The base table:

Prata_Jose_0-1653042162790.png

 

 

Openned one whitout the DAX "filter":

Prata_Jose_1-1653042190289.png

 

 

With the filter:

Prata_Jose_2-1653042547363.png

 

The filter itself:

Prata_Jose_3-1653042561052.png

 

 

 And what i need with the total and without the organization:

Prata_Jose_4-1653042689378.png

 

 

(Just in case u didn't got it, this was the litle arrow i was talking about)

Prata_Jose_5-1653042787883.png

 

 

And the supost final project should look something like this:

 

Prata_Jose_7-1653043359351.png

 

 

 

 

Hope someone understands the problem.
Kind Regards. 

6 REPLIES 6
Anonymous
Not applicable

lalala90Windows4
lalala90Linux4
12321ttttJava4
help9999Linux4
wasdwasd5Java4
wasdwasd5Java5
wasdwasd5Java5
asdfg1976Windows4
asdfg1976Java5
asdfg1976Java5
asdfg1976Linux4
asdfg1976Windows5
asdfg1976Windows4

 

 

Hope it helps.

lbendlin
Super User
Super User

Please provide sanitized sample data that fully covers your issue. If you paste the data into a table in your post or use one of the file services it will be easier to assist you. Avoid posting screenshots of your source data if possible.

Please show the expected outcome based on the sample data you provided. Screenshots of the expected outcome are ok.

https://community.powerbi.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523

Anonymous
Not applicable

Unfortunately, my company data protection software won't let me export files to outside of the company's server. There is any other way i can help? (I tried dropbox, google drive, wetransfer, etc... all the ones mentioned in the link you sent).

Post the sample data from your first post, but in usable format.

Anonymous
Not applicable

I'm very sorry but I'm new to all of this could you please explain in more detail? I really don't know how should I do that 😞

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.