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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
reynold522
Helper II
Helper II

get rid of filter for my dax calculation

Hi All, 

 

I have a table visual

 

column 1 is IoT ID
column 2 is measure 1

column 3 is measure 2
column 4 is measure 3

I have put a time filter (last 7 days) for the report page. 

I do want Measure 1 and measure 2 filter by time

my measure 3 code is as following:

DoDoverboundaryN =
-- Notification
VAR _Notification =
IF (table[Capacitythreshold])>abs([Max DoD]),0,1)
    RETURN
    _Notification

the code above works, however, I want it not influence by page filter: Table [timestamp]
I used All(table[timestamp], however, I dont know how to integrate this into existing code.
 
Thanks in advance!
1 ACCEPTED SOLUTION
tamerj1
Super User
Super User

Hi @reynold522 

I hope both [Capacitythreshold] and [Max DoD] are measures. Please try

DoDoverboundaryN =
CALCULATE (
IF ( [Capacitythreshold] > ABS ( [Max DoD] ), 0, 1 ),
ALL ( 'Table'[timestamp] )
)

View solution in original post

2 REPLIES 2
tamerj1
Super User
Super User

Hi @reynold522 

I hope both [Capacitythreshold] and [Max DoD] are measures. Please try

DoDoverboundaryN =
CALCULATE (
IF ( [Capacitythreshold] > ABS ( [Max DoD] ), 0, 1 ),
ALL ( 'Table'[timestamp] )
)

FreemanZ
Super User
Super User

hi @reynold522 

try like:

 

DoDoverboundaryN =
-- Notification
VAR _Notification =
IF (CALCULATE([Capacitythreshold], ALL(TableName[timestamp]))>abs([Max DoD]),0,1)
RETURN
_Notification

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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