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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
tohare85
Frequent Visitor

Dynamic Lookup Table

I am trying to create a lookup table that will contain 2 columns (projectID, activeMonth) from a main table of Projects that lists start and end dates (could be empty if project is still active). I want a lookup table that will tell me if the project was active during a specific month (up to 48 months back from date of report). I know how I would programtically iterate through each project row then check if it was active during any of the past 48 month, however, I can't think about how I would do this with DAX. If a project was only active for 3 months then it will only have 3 rows in the ActiveMonth table. Any ideas? Thanks!

1 ACCEPTED SOLUTION
stretcharm
Memorable Member
Memorable Member

 

Sounds a similar problem to this post

http://community.powerbi.com/t5/Desktop/Help-needed-graphing-a-count-between-a-date-range/m-p/307250...

 

@parry2kprovided a solution that could be adapted to meet your needs.

 

View solution in original post

3 REPLIES 3
Ashish_Mathur
Super User
Super User

Hi @tohare85

 

This should be doable using Query Editor and DAX formulas.  Share a dataset and show the expected result.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
stretcharm
Memorable Member
Memorable Member

 

Sounds a similar problem to this post

http://community.powerbi.com/t5/Desktop/Help-needed-graphing-a-count-between-a-date-range/m-p/307250...

 

@parry2kprovided a solution that could be adapted to meet your needs.

 

Thanks @stretcharm. Reaching out to @parry2k to see how to change the granularity of his solution.

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors