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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
U156531
Post Patron
Post Patron

Error when Appling filter to compare dates between two tables

I  need to calculate a result where the dates between two table are equal. I'm getting the following error. Is there another DAX formula to accomplish this? Thanks

 

U156531_1-1718223818137.png

 

 

 

 

 

2 REPLIES 2
Anonymous
Not applicable

Hi @U156531 ,

Please try to modify the measure.

result=
var max_rowdate=max('table1'[date])
return 
calculate(sum('table1'[valuea])+sum('table2'[valueb]),'table1'[date]=selectedvalue('table2'[date]))

 

How to Get Your Question Answered Quickly - Microsoft Fabric Community

 

If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .

 

Best Regards
Community Support Team _ Rongtie

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

 

 

 

 

This is an exemple of what I'm attempting to do.  I need to get a rolling total by month for the Result measure as below. However in my pbix I can't seem to link the dates between the tables ( it breaks other relationships)  so I'm hoping it can be accomplished in the Result measure.  

         ValueA                ValueB         Result

Jan         5                        2                 7

Feb        3                        1                 11

Mar       4                        1                 16

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors