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
SMY
Frequent Visitor

Measure to retrieve dates from multiple data tables

I am struggling to find a solution to something and was wondering if anyone can help here ?

I have a table with a list of raw deal numbers that links to two underlying details of varying levels of granularity for each transaction.

 

SMY_0-1619099386234.png

 

 

I am trying to create a pivot that would show each transaction number and then return a “next date” using the following logic.

 

  • Go to the more detailed tab and find the first date meeting a certain set of criteria for the transaction ID in question.

But

  • If that first route doesn’t return a valid date, go to the summary detail tab and return the end date down there.

I have managed to create a type of measure that partially works for the first point but it then seems to filter the pivot to show only those transactions it's been able to find an answer. I've tried lots of variations of switch or if but can't seem to arrive at anything that might work.

 

At this point, I'm not sure if it's my formula or something fundamental I'm missing in terms of my data structure.

 

Can anyone offer any suggestions or advise as to what direction I need to go to resolve this?

 

 

2 REPLIES 2
v-henryk-mstf
Community Support
Community Support

Hi @SMY ,

 

What are the condition for valid date judgment? You can try to judge the filter valid date by the FILTER and IF functions, and select the summary table that meets the condition, otherwise go to the details table for further solution.


If the problem is still not resolved, whether you can provide test data and expected results, I will answer for you as soon as possible. Looking forward to your reply.

Best Regards,
Henry

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi Henry. Thank you for you input. By "valid date", I mean non-blank. In certain cases, the first measure I've created returns only a blank value as there won't actually be a date in the details tab meeting the criteria set. In such cases I'd then like it to refer back to the summary table and retrieve the date from a particular column there referring to the Transaction ID in question. Does that clarify for you?

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.