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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
amty63
Helper III
Helper III

Measure values problem from another table in table view in Power BI desktop

Hello, 

First 3 columns are from table 1 and last column is from table 2. I need breakup of measure test like the same in image 2. Country_test in image 1 is a column from table 1 and country_desc is a column from table 2.

 

As of now, it is coming the grand total in all the rows.

Please help.

 

 

Image 1 

amty63_0-1619670905964.png

 

 

Image 2

amty63_1-1619671061294.png

 

1 ACCEPTED SOLUTION

@amty63 , This means one of the tables has unique countries

Try new table like

 

country = distinct(union(distinct(Table1[country]),distinct(Table2[country])))

 

now join with both country

View solution in original post

6 REPLIES 6
Jihwan_Kim
Super User
Super User

Hi, @amty63 

I am not sure how your data model looks like, but it seems like those two tables are not connected.

Please try to make the relationship between the two tables.

Or, please share your sample pbix file's link here.

 

Hi, My name is Jihwan Kim.

 

If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.

 

Linkedin: linkedin.com/in/jihwankim1975/

Twitter: twitter.com/Jihwan_JHKIM

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Go to My LinkedIn Page


There is circular dependency is detected while joining to the country table.. that is the reason I don't join with the table... can't we do without joining the tables ... some DAX formulas

 

Hi, @amty63 

Thank you for your feedback.

I am not sure how your data model looks like. Please try to use TREATAS function inside your measure.

Or, if it is ok with you, please share your sample pbix file's link here.

 

Hi, My name is Jihwan Kim.

 

If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.

 

Linkedin: linkedin.com/in/jihwankim1975/

Twitter: twitter.com/Jihwan_JHKIM

 

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Go to My LinkedIn Page


amitchandak
Super User
Super User

@amty63 , seem like table 1 and table 2 do not have to join.

I think you need to have a common country table and join both tables with that and then analyze them together.

 

how to create such a common table

https://www.youtube.com/watch?v=Bkf35Roman8

 

There is circular dependency is detected while joining to the country table.. that is the reason I don't join with the table... can't we do without joining the tables ... some DAX formulas

@amty63 , This means one of the tables has unique countries

Try new table like

 

country = distinct(union(distinct(Table1[country]),distinct(Table2[country])))

 

now join with both country

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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