JustinDoh1
4 years agoPost Prodigy
Calculate function - filter
I am trying to understand this DAX code here.
DAYSINMONTH =
day(calculate(
ENDOFMONTH('Calendar'[Date]),
Table1
)
)
Why do we have Table1 here?
I thought extra line is for filter (or extra filters), but this is only table name.
There is a relationship between 'Calendar' table and 'Table1' table.
Update:
I have attached Pbix file for better illustration.
Sorry for confusions.
Thanks.
I don't think the post initiator, so far, wraps his/her head around my solution in another post of his/hers.
Solved: How to reference a value on related table - Microsoft Power BI Community
CALCULATE filters are actually tables.Indeed, this is how filters works in DAX. It's an explicit leveraging of Expanded Table in such statements, CALCULATE( XXX, Table ).