Forum Discussion
Multiple dates issue in single graph
- 3 years ago
I found the solution as make all relations with Calender table inactive. Wherever necessary, construct active relations using the DAX formula USERELATIONSHIP.
Hey Rikin-Nayak-007 ,
I have to admit that I do not understand your requirement.
I assume that there is a slicer that filters the year ('date'[date]), as no date is involved on the chart.
I also do not understand the measure you provided, as it does not contain an aggregate function for the first parameter, the numeric expression. I think it has to look like this:
CALCULATE(
COUNT( 'master'[item] )
, ...
)
Maybe it should look like this to calculate the sales value with the change of the relationship:
CALCULATE(
SUM( '<the name of the sales fact table>'[<sales valuue>] )
,USERELATIONSHIP('Date'[Date],Master[Selling_date]))
)
But as I mentioned, I do not exactly understand your requirement.
Consider creating a pbix that contains sample data but still reflects your data model (tables, relationships, calculated columns, and measures). Upload the pbix file to onedrive, google drive, or dropbox and share the link. If you are using Excel to create the sample data instead of the manual input method, share the Excel file.
Please elaborate on the problem you are facing based on your sample data.
Regards,
Tom