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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.