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
MSargeant
Frequent Visitor

Addition of Evaluative date parameter to DAX Measure

Hi all,

I have a measure that works except when I add a date component to my visual. It appears to be evaluating for each period instead of utilising the extenal filter that was applied to the visual. There should be a third column for     2023/24 02 which designates a failure in that period for asset 34332 but as it was only one failure in that period it has been omitted - the evaluating date parameter should be less <= 84 days.

 

MSargeant_3-1688057204783.png

 

 

MSargeant_0-1688056443802.png

 

Sample data:

ASSET_NUMASSET_DESCTICKET_IDRAISED_DATERAISED_YEAR_PERIOD
34332West298569303/04/202323/24-P01
34332West298626018/04/202323/24-P01
34332West298671824/04/202323/24-P01
34332West298674527/04/202323/24-P01
34332West298675230/04/202323/24-P02
34332West298752031/05/202323/24-P03
34332West298777212/06/202323/24-P03
34332West298774712/06/202323/24-P03
34332West298809421/06/202323/24-P03

 

 

I am trying to build in a date component into the measure to see if it fixes the issue.

My original measure:

 

Repeat Failures = COUNTROWS(

    FILTER(

        SUMMARIZE(

        'CS_RPT_Failures','CS_RPT_Failures'[ASSETNUM],

        "TICKETID",

            COUNT('CS_RPT_Failures'[TICKETID])

        ),        

      [TICKETID]>= 3 && ISBLANK([TICKETID]) = FALSE)
       )
 
I have tried the following:
 
Repeat Failures 1 = COUNTROWS(
     FILTER( SUMMARIZE(  
        'CS_RPT_Failures', 'CS_RPT_Failures'[ASSETNUM], 'CS_RPT_Failures'[RAISED_DATE],
        "TICKETID",
        COUNT('CS_RPT_Failures'[TICKETID])
        ),
        [TICKETID] >= 3 && ISBLANK([TICKETID]) = FALSE &&
        DATEDIFF( 'CS_RPT_Failures'[RAISED_DATE], TODAY(), DAY ) <= 84)
          )
 and a couple other very similar variations but nothing has worked. 

 

0 REPLIES 0

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.