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

A new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.

Reply
DAXStudent
New Member

Need Help with Advanced DAX Calc

I have some complex requirements for a DAX formula that I can't quite figure out.

 

Cases are attributed to Counties. That Case -> County attribution changes over time. The Case table can have new rows every several months, but it is not regular and cannot be depended on.

 

I need a matrix with the average age of the case on the values, county on the rows, and month on the columns. The age of the case needs to 'carry forward' and appear in each month until the next entry in the Case table.

 

This must be a DAX solution, it cannot be a Power Query solution. Relationships between tables can be changed or removed if necessary for the solution.

 

Here's my sample data:

DAXStudent_1-1745333464463.png

Here's the required result:

DAXStudent_0-1745333437439.png

 

Here is a link to download my pbix: https://www.dropbox.com/scl/fi/vn7cgah4ru4zilnvm3580/20250422-Power-BI-DAX-Question.pbix?rlkey=tinuh...

 

1 ACCEPTED SOLUTION
lbendlin
Super User
Super User

lbendlin_0-1745342202654.png

 

You need to disconnect all tables and then work it from the perspective of the case, looking up.

View solution in original post

2 REPLIES 2
DAXStudent
New Member

That is the most amazing thing I've ever seen. I tip my hat to you.

lbendlin
Super User
Super User

lbendlin_0-1745342202654.png

 

You need to disconnect all tables and then work it from the perspective of the case, looking up.

Helpful resources

Announcements
May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.