Forum Discussion
Anonymous
8 years agoNot applicable
dax to filter a column value using related table
Hi,
I am calculating total YTD using the following:
TOTALYTD(sum(Insurance[Incident]),'Date'[Date])
The issue is the YTD is calculated for all dates instead of just the related dates from Insurance fact table.I want to filter out the dates from Date dimension that do not match the dates in the Insurance table.The Insurance table is joined with Date table using FirstDayofMonth date field.
I tried a couple filter arguents,but no luck.Pls help
1 Reply
- v-chuncz-msftCommunity Support
Anonymous,
For time intelligence function, you could implement a custom DAX formula.
https://www.sqlbi.com/articles/time-intelligence-in-power-bi-desktop/