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
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
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.