Forum Discussion
broken relation with date dax table
- 5 years ago
You really need to post an image of your model. You should not need USERELATIONSHIP. It is not clear if [report period] is a date. You should not be using the fact column inside SAMEPERIODLASTYEAR
- Anonymous5 years ago
I finaly added a segment with the Report[Report Period] and it works MattAllington !
I wonder how ? Did it regroupe the report ?
Thank you for your reply,
i modified the code for both measures but i have the same amount for Total YTD LY and Total YTD (i should have less for YTD LY):
Total YTD =
CALCULATE (
SUM(Report[Revenue USD]),
DATESYTD ( Report[Report Period] )
)
Total YTD LY =
CALCULATE (
[Total YTD],SAMEPERIODLASTYEAR('Date'[Date] )
)
(I put some blank on other fields)
Report period (each client has his report with the same report period for each month):
Regards
I finaly added a segment with the Report[Report Period] and it works MattAllington !
I wonder how ? Did it regroupe the report ?