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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

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 community update carousel

Fabric Community Update - June 2025

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