I have a table in my data model that looks something like this,
[table="width: 500, class: grid"]
[tr]
[td]Item[/td]
[td]Contents[/td]
[/tr]
[tr]
[td]Current Month[/td]
[td]Jan 2016[/td]
[/tr]
[tr]
[td]Prior Month[/td]
[td]Dec 2015[/td]
[/tr]
[/table]
And then I have another table with a listing of transactions by date (just by month, not specific to the day).
I want to create a calculated measure summing all transactions in the "Current Month" as it exists in my table shown above. So I am trying to somehow extract the "Current Month" line from that table, and use it in a calculated measure, but having no luck. I tried this,
=CALCULATE( DATEVALUE([Contents], FILTER( TableContents, TableContents[Item] = "Current Month") )
But this doesn't seem to work.
Any advice on how to resolve this or a better approach?
Thanks
[table="width: 500, class: grid"]
[tr]
[td]Item[/td]
[td]Contents[/td]
[/tr]
[tr]
[td]Current Month[/td]
[td]Jan 2016[/td]
[/tr]
[tr]
[td]Prior Month[/td]
[td]Dec 2015[/td]
[/tr]
[/table]
And then I have another table with a listing of transactions by date (just by month, not specific to the day).
I want to create a calculated measure summing all transactions in the "Current Month" as it exists in my table shown above. So I am trying to somehow extract the "Current Month" line from that table, and use it in a calculated measure, but having no luck. I tried this,
=CALCULATE( DATEVALUE([Contents], FILTER( TableContents, TableContents[Item] = "Current Month") )
But this doesn't seem to work.
Any advice on how to resolve this or a better approach?
Thanks