Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin 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.
Thank you in advance for your help.
I have two tables:
Arrest Table includes date of arrest, name number, and current street address
NMHistory Table includes name number, street address, Begin Date and Expiration Date for that address
Currently, the Arrest Table updates with the current address and not the address the person had when they were arrested.
I would like to say something to the effect of:
If the name number in Arrest Table matches the name number in NMHistory table, look at date of arrest and find where the date fits within the Begin Date and Expiration Date. If the date fits, return the street address. If the arrest date is greater than the greatest expiration date in the NMHistory Table, return the street address from the Arrest Table.
Here is a visual with sample data:
I'm totally stumped. Thank you so much for helping.
Crystal
Solved! Go to Solution.
Hi @kimberlyrose1x
You can create a new calculated column in the Arrest table
Steet at Arrest =
MAXX (
FILTER (
NMHistory,
NMHistory[Number] = Arrest[NameNum]
&& NMHistory[Begin Date] <= Arrest[Date]
&& NMHistory[Exp Date] >= Arrest[Date]
),
NMHistory[Street]
)
Hi @kimberlyrose1x
You can create a new calculated column in the Arrest table
Steet at Arrest =
MAXX (
FILTER (
NMHistory,
NMHistory[Number] = Arrest[NameNum]
&& NMHistory[Begin Date] <= Arrest[Date]
&& NMHistory[Exp Date] >= Arrest[Date]
),
NMHistory[Street]
)
Thank you so much!!! You saved the day again. 🙂
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
11 | |
11 | |
10 | |
9 | |
8 |
User | Count |
---|---|
17 | |
12 | |
11 | |
11 | |
11 |