Showing results for 
Search instead for 
Did you mean: 
Helper IV
Helper IV

calculating a value based on other column

I have the following data




a ticketnumber has an id in the ticketdetails table. This id is linked with the table tickets. A ticket has a majorticketid, or is blank (when there is no major ticket assigned).


When there is a majorticket assigned, this also has a ticketnumber in the table ticketdetails.


Now i need to be able to create a column ticketdetails table, that basically says;

when ticket.majorticketid is not empty then ticketdetailsticketnumber, otherwise blank


both tables are linked via ticketid, one on one relationship.



Super User
Super User

@TechR21 , A new column in ticketdetails




refer 4 ways to copy data from one table to another

I dont need the majorticketid, I need the ticketdetailsticketnumber when majorticketid is not empty

@TechR21 , In the tickets table , assuming both are joined




else add filter


maxx(filter(ticketdetails,ticketdetails[ticket id] = tickets[ticket id]) , ticketdetails[ticketdetailsticketnumber])

Helpful resources

Vote for T-Shirt Design

Power BI T-Shirt Design Challenge 2023

Vote for your favorite t-shirt design now through March 28.

March 2023 Update3

Power BI March 2023 Update

Find out more about the March 2023 update.

March Events 2023A

March 2023 Events

Find out more about the online and in person events happening in March!

Top Solution Authors