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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
javitxin42
Regular Visitor

Data model

Hello, I have a problem when it comes to viewing the total of a column in a TABLA display bjeto in power bi and it may be because of the data model.

I connect dynamically so I can do almost nothing in power bi as I only have the report view.

I explain the data model:

1) I have a housing table with columns (Id, Id_Comunidad, street, portal, floor, hand, ....)

2) I have a table of item costs by community (Id_Comunidad, Coste_Mantenimieto_Comunidad, Coste_Mantenimiento_Garaje, etc....). I have a relationship between the community and housing for the Id_Comunidad)

3) I have a Table of Percentages of Participation per Housing that tries to divide the cost of each item in the community table (2) among the neighbors of that community. For example, each neighbor is assigned a percentage share for each maintenance cost. I have related the ID in Table 1 to the ID in this table 3 because the percentage goes by housing.

So far so good. In my bucket I create calculations with which to obtain for each item or cost, how much money corresponds to each neighbor or housing. I get for example the cost per neighbor of the community maintenance and the maintenance of the garage. I can see in powerbi the data and the column total fits perfectly. Everything's right up here.

Now I have to add one more column to apply financial aid to those payments in such a way that each neighbour also has a percentage of aid. This percentage should be applied to the sum of costs per neighbour. That is, I add the cost of community maintenance per neighbor + cost of garage maintenance per neighbor and to that total I have to apply a port of help. Imagine it's 50%. The neighbour would have to pay only 50% of the total costs that would be due to him.

Well, for the percentage of aid I have another table that relates it to the one of housing per Id since the percentage of aid goes for housing.

Let's say I have a neighbor dimension that has the id_vecino and id_comunidad and this dimension relates to the cost facts tables by community (table 2), participation per neighbor (table 3), and the percentage of help per neighbor (table 4). That would be my star data model,

Well, when creating another calculation where the previous calculation of sum of item costs per neighbor I apply the aid percentage, the value does well for me but the total of the column I show in the table display in power bi is squared and does not take into account the percentage. It shows me the total as if there was no percentage or the percentage was 0%. In the cell I see that the percentage applies but in the total NO.

This happened to me again and it was because of the data model. I found out I had something wrong. However now I think it's OK even though since the same thing happens to me, I thought something's slipping away from me.

Can someone help me please? Thanks in advance. Best regards!

1 ACCEPTED SOLUTION
v-chuncz-msft
Community Support
Community Support

@javitxin42 

 

You may take a look at the post below.

https://community.powerbi.com/t5/DAX-Commands-and-Tips/Dealing-with-Measure-Totals/m-p/63376#M56

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-chuncz-msft
Community Support
Community Support

@javitxin42 

 

You may take a look at the post below.

https://community.powerbi.com/t5/DAX-Commands-and-Tips/Dealing-with-Measure-Totals/m-p/63376#M56

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
javitxin42
Regular Visitor

I think I've found my mistake in a relationship. I think. I'm going to check it out.

Thank you.

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.