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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
atowriss99
Frequent Visitor

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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.