Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi,
I have two separate tables which cannot be related to each other (two different sources). One is called reference table in which a workorder can be selected, the other is error_code. Functionality should be that when I filter a specific workorder in the reference table, there is a 'realBeginTime' and 'realEndTime' present in that table. The related error codes then should be displayed for the time between realbegintime and realendtime. So there should be a check that 'datStart' (see picture) from the error_code table is between realbegintime and realendtime from the reference table. In beneeth picture only the red marked lines should appear in the table.
Hi @Anonymous ,
You can create measure Filter1 in reference table, then put measure Filter1 in the Visual Level Filter of goal table visual, and setting the Filter1 as "is not blank".
Filter1=IF(COUNTROWS ( ALLSELECTED ( reference[reference] ) ) < 1,BLANK (),IF(reference[realBeginTime]<=MAX(error_code[datStart])&&reference[realEndTime]>=MAX(error_code[datStart]),1,BLANK()))
Best Regards,
Amy
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi,
Thanks for your assistance. After the second if statement I cannot select 'reference[realBeginTime'. Only a formula or measure. Any idea how to solve?
Cheers.
Hi @Anonymous ,
Please try this measure.
Filter1=IF(COUNTROWS ( ALLSELECTED ( reference[reference] ) ) < 1,BLANK (),IF(MAX(reference[realBeginTime])<=MAX(error_code[datStart])&&MAX(reference[realEndTime])>=MAX(error_code[datStart]),1,BLANK()))
Best Regards,
Amy
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi Amy,
I tried following dax formula:
Hi @Anonymous ,
Does that make sense? If not, let me know and I'll try to help you further.
Best regards
Amy
Hi @Anonymous ,
Is there anyone is measure for [realBeginTime], [realEndTime] and [datStart]? If yes, you can delete the MAX function before this date measure , and try it again. Or you may put bucket ")" in wrong place for MAX function.
Best Regards,
Amy
Solved by following calculation:
@Anonymous can you post some sample data in excel by sharing thru onedrive/google drive.
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.