Reply
jip3134
New Member
Partially syndicated - Outbound

help for dynamic measure with date

Hi

I used a static filter in my report in order to filter events after the date of the current day 

I oblige to update regularly this date

So I try to create a dynamic mesure 

My date field is called "Warranty expiration" (it is in a date format) and it is in this format : mardi 25 mars 2025

I have created the DAX measure below but it does'nt works

 

 

Dynamic_Warranty_Date = 
CALCULATE(
    SUM('CMDB'[Warranty expiration]),
    'CMDB'[Warranty expiration] > NOW()
)

 

Could you help please?

3 REPLIES 3
Chewdata
Super User
Super User

Syndicated - Outbound

Hey,

Creating a column in Power Query might be a better approach:

= Table.AddColumn(#"Changed Type", "Warranty expired", each if [Warranty expiration] <= Date.From(DateTime.LocalNow()) then true else false)

You can then filter on this column

Or if you want to use a calculated column instead:

Warranty expired =
IF(
    YOURDATA[Warranty expiration] <= TODAY(),
    TRUE,
    FALSE
    )






 

 

Syndicated - Outbound

sorry but i need imperatively to use power bi

Syndicated - Outbound

Hi

I have already done this and it changes nothing

 

avatar user

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!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

Feb2025 NL Carousel

Fabric Community Update - February 2025

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

Top Solution Authors (Last Month)
Top Kudoed Authors (Last Month)