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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
godtooro
Helper II
Helper II

Calculate if

Dear all!

 

Please I need you support.

I want to calculate if [Due Date] < [Date of DataSet].

 

I've tried:

Overdue Amount =
    var _DuelesDate = FILTER(BIFAR000, BIFAR000[Due Date] < BIFAR000[Date of Dataset])

    return

        SWITCH(
            TRUE,
            _DuelesDate, [Amount])
 
But is not working.
 
I've tried:
CALCULATE(
        [Amount],
        BIFAR000[Due Date] < BIFAR000[Date of Dataset])
 
But neither.
 
Do you have an idea?

 

1 ACCEPTED SOLUTION

Thank u @Sandhya1234 !
Working!!!!!!

Thank you so much!

View solution in original post

5 REPLIES 5
Sandhya1234
Helper II
Helper II

Ensure that both the "Due Date" and "Date of Dataset" columns are properly recognized as date types in your data model.

If they are not, you can change their data types by right-clicking on the column header and selecting "Change Type" > "Date."

Hi @Sandhya1234 you were right.
I've changed data type to date and solved.

Sandhya1234
Helper II
Helper II

Hello @godtooro Try this measure.
Overdue Amount = SUMX( FILTER(BIFAR000, BIFAR000[Due Date] < BIFAR000[Date of Dataset]), BIFAR000[Amount] )

Thank u @Sandhya1234 !
Working!!!!!!

Thank you so much!

Hello @godtooro Please accept as a solution!.

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.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

Check out the June 2024 Power BI update to learn about new features.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.