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

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a $100 discount. Register Now

Reply
Gullinborsti
New Member

Max value from other table

Hello,

 

I've been trying to solve the following problem for a while and I hope you can help me:

I have a table1 with system names in it.
I have a table2 which is a ticket system.

 

In Table 2, the system name is there more often, depending on how many tickets there are.
The tickets have different types and different priorities based on the type.


For example:
System "Power" has 3 tickets:
Ticket1 Alert Priority 1
Ticket2 Warning Priority 2
Ticket3 Warning Priority 2

 

Now I want a column to be added to table 1.
The column should contain the highest priority of the tickets that the system has.

 

In the above example, we have a priority 1 ticket for system "Power".
So, in table 1, system "Power" should have priority 1.

 

If the ticket is then closed, Ticket 1 Alert will disappear.
So the new priority will be priority 2 and so on.

 

I hope it is understandable how I phrased it.

 

 

Best regards
Gullinborsti

1 REPLY 1
johnt75
Super User
Super User

If you have a one-to-many relationship from System Names to Tickets then you could create a column like

Highest Priority = MAXX( RELATEDTABLE( 'Tickets' ), 'Tickets'[Priority])

Helpful resources

Announcements
Fabric Community Conference

Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.

February 2024 Update Carousel

Power BI Monthly Update - February 2024

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

Fabric Career Hub

Microsoft Fabric Career Hub

Explore career paths and learn resources in Fabric.

Fabric Partner Community

Microsoft Fabric Partner Community

Engage with the Fabric engineering team, hear of product updates, business opportunities, and resources in the Fabric Partner Community.

Top Solution Authors