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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Dexter1088
Frequent Visitor

Multiple IF Measure with one to many relation

Looking for a measure that will tell me if there are any issues open on that item and also if any like issue has occured in the last 20 days.

Tried this, but it's not catching everything. any suggestions? ty

 

 

IF(MAX(TICKET TABLE[Unique_Tie])<>MAX(ISSUE TABLE[Unique_Tie]) && MIN(ISSUE TABLE[Age of issue])<0, "NO",
IF(MAX(TICKET TABLE[Unique_Tie])=MAX(ISSUE TABLE[Unique_Tie]) && MAX(ISSUE TABLE[Age of issue])<20, "NO"
,"YES")))

 

 

 

 

 

  ISSUE TABLE
ItemIssueUnique_TieAge of issueDate of issue
1A1_A218/23/2024
2A2_A258/19/2024
3B3_B129/1/2024
1B1_B  
2A2_A557/20/2024

 

 

  TICKET TABLE
ItemIssueUnique_TieDesired Outcome
1A1_AYES
2A2_ANO
3B3_BYES
3 REPLIES 3
Anonymous
Not applicable

Hi @Dexter1088 ,

 

Could you please tell me:

 

Are you looking to retrieve the 'TICKET TABLE' based on the 'ISSUE TABLE'? If so, are you grouping by Item to check whether the group contains any records where the 'Age of issue' is less than 20 or is blank?

 

Additionally, for the 'Ticket Table,' on what conditions do you retain 'Issue' and 'Unique_Tie'? Since an Item may have both Issue "A' and "B", as well as Unique_Tile values like "1_A" and "1_B", do you only need to retain the first record's Issue and UniqueTile for that group?

 

Best Regards,
Bof

ryan_mayu
Super User
Super User

not clear about the logic? what about 1_B?

why 2_A is NO? I think it's 25 days which is more than 20





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Item 1 Issue B is still active because it's blank
Item 2 Issue A is a NO because the issue cleared over 20 days ago

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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