Forum Discussion
matsahiro
Helper II
5 years agoDAX Calculating on Wrong Rows - Not Recognizing Join Relationship Properly
Hello, I'm trying to figure out why DAX isn't calculating properly on the right rows. I have this indicator made in DAX trying to show which accounts have different dates from previous and current da...
amitchandak
Super User
5 years agomatsahiro , You need to have a common account table and join these two tables with that. and analyze with the account numbers from the common table.
You can create a measure like
New_Date_Indicator = IF(max('Current'[Statement Date])=max(Previous[Previous Statement Date]),"0","1")
- matsahiro5 years ago
Helper II
amitchandak I went ahead and created the common account table and added indexes to the other two tables. I joined on the indexes with ID in account table. Here's what the relationship looks like.
The relationships looks to be right until I add in the indicator.
- matsahiro5 years ago
Helper II
- amitchandak5 years ago
Super User
matsahiro , Make these 1-1 Join as 1-M (account is 1), single direction and try