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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
OliJov
Frequent Visitor

Measure with duplicates

I have one table

A1   B1

A1   B2

and a child table

B1    178XX

B2    178XX

and a fact table

178XX   5

As a result I get in pivot table (this is SSAS, but ok):

A1   5

B1   5

B2   5 

but that is wrong, because the preffered answer and a correct one is

A1   10

B1   5

B2   5 

How can I do this? Measure is the simple one: sum(amount)

4 REPLIES 4
Kazu
Helper II
Helper II

I am not sure why your A1 and B1, B2 are shown in the same column in the pivot table when they are different fields in different entities. It might be helpful to understand better if you could show the relationships of these entities.

OliJov
Frequent Visitor

Tabular.png

 

Table 3 looks like a dimension because of 1:n relationship to Table 2. At the same time it looks like a fact because you have "amount" there and you are calculating SUM. 
I guess your real fact table should be either Table 1 or Table 2 and you need to add some measures there. But since everything is dummy, nobody would be able to provide any suggestions. Giving proper name to 1, 2, 3 and A, B, R would make the troubleshooting easier.

I am struggling to unserstand what these three tables are meant to be. If your measure is SUMX(Table3, Table3[amount]), 5 is the correct total (I know it is not what you want, though)

 

Probably your three tables are not designed in a right way. However, since your table names and column names are all dummy, I could not suggest any changes. 

Helpful resources

Announcements
Fabcon_Europe_Social_Bogo

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

Check out the June 2024 Power BI update to learn about new features.

PBI_Carousel_NL_June

Fabric Community Update - June 2024

Get the latest Fabric updates from Build 2024, key Skills Challenge voucher deadlines, top blogs, forum posts, and product ideas.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.