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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
hxkresl
Advocate III
Advocate III

needing to pivot two columns that are in different tables - guidance needed

I need the count(Alerts[Alert number]) grouped by Sites[Country].

The two columns come from two different tables, distanced from each other by reversing 1:many relationships.

If I want to place count(Alert Numbers) and Country on same pivot table, what can I do to overcome the issue of the relationships?

columns needed from Alerts and Sites tablescolumns needed from Alerts and Sites tables

 

 

2 REPLIES 2
CahabaData
Memorable Member
Memorable Member

If there is 1 country to an LOB it can be done.  But if an LOB is in multiple countries, as I would suspect - I don't think your data model can give an Alert count by country.  What I see is only an Alert by LOB ability....    sorry for a non PBI reply but was just looking at the tables.....

www.CahabaData.com
Greg_Deckler
Community Champion
Community Champion

That would depend on the issues you are having with the relationships. What are they? Generally when you find yourself in those kinds of situations you need to tinker with the cross-filtering settings of the relationships or refactor the data model. Power BI does a pretty fantastic job with transitive relationships in general. I've done models that have 3 or 4 intermediary tables that build a many:many relationships and Power BI purrs right along.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors