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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. 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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors