Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
atowriss99
Helper I
Helper I

Measure to ignore date slicer help

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))

1 REPLY 1
mh2587
Super User
Super User

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!




LinkedIn Icon
Muhammad Hasnain



Helpful resources

Announcements
July 2024 Power BI Update

Power BI Monthly Update - July 2024

Check out the July 2024 Power BI update to learn about new features.

PBI_Carousel_NL_June

Fabric Community Update - June 2024

Get the latest Fabric updates from Build 2024, key Skills Challenge voucher deadlines, top blogs, forum posts, and product ideas.

Top Solution Authors