The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
I am trying to calculate the sum of sales (in combined table) for the Version and 2 clients listed in the measure below when the Revenue Date (column in the Combined Table) equals the EOM of the slected date in the slicer. The page has a date slicer only.
I've tried a couple different things, and this was my lataest: But I get the error: The True/False expression does not specify a column. Each True/False expressions used as a table filter expression must refer to exactly one column.
The Measure Combined Total Revenue referenced in the Calculate is just this: sum('Combined All'[Value])
Also of note...I do have a disconnected Date Table
Can anyone help me corect this?
Thank You
Test =
VAR _SelDate = MAX('Date'[Date])
VAR _Day = SELECTEDVALUE('Date'[Day])
VAR _EOM = EOMONTH(_SelDate, 0)
RETURN
CALCULATE(
[Combined Total Revenue],
'Combined All'[Version] = "Prediction",'Combined All'[Profitability Customer] = "ClientA"||'Combined All'[Profitability Customer] = "ClientB",
REMOVEFILTERS('Date'[Date]),
KEEPFILTERS(_EOM))
Test = //Try this one
VAR _SelDate = MAX('Date'[Date])
VAR _Day = SELECTEDVALUE('Date'[Day])
VAR _EOM = EOMONTH(_SelDate, 0)
RETURN
CALCULATE(
[Combined Total Revenue],
'Combined All'[Version] = "Prediction",
'Combined All'[Profitability Customer] IN {"ClientA", "ClientB"},
FILTER('Date', 'Date'[Date] = _EOM)
)
Did I answer your question? If so, please mark my post as a solution!
Proud to be a Super User!