Forum Discussion
DATEDIFF Difference
- 7 years ago
It would be on that field dropdown. It may not be first/last. I was looking at another model with text. But could be min/max, which would be the same in this case.
Not a big fan of this approach, as I prefer measures, but seeing if we can get you what you want without starting over with where your data calculations are.
Just throwing this out there. It may be that you have 3 records for that case ID, and DateDiff of 1 3 times is 3. If that is what is happening, you could tell it to not summarize that data in the data setting for that field. Or set to FIRST or LAST as it should be the same.
Or create a measure that does the calculation at the aggregate level of your table vs calculated columns. Without seeing your table, it would be something along the lines of:
Date Difference = DATEDIFF ( MAX ( DataTable[Date Start] ), MAX ( DataTable[Date Finish] ), DAY )
- Penn7 years agoResolver I
Hi edhans
Can you explain more about the first option? How to get it not summarize that data in the data setting for that field. And how to set to FIRST or LAST? Thanks
- edhans7 years agoCommunity Champion
It would be on that field dropdown. It may not be first/last. I was looking at another model with text. But could be min/max, which would be the same in this case.
Not a big fan of this approach, as I prefer measures, but seeing if we can get you what you want without starting over with where your data calculations are.