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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch 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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.