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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
seanrm42
Frequent Visitor

Null Value Boolean Correction for Software Analysis

I have the following tables linked together by application name:

 

Application Name:         Family:         Verssion: 

App9                              Fam1            9

App8                              Fam1            8              

App7                              Fam1            7                

App6                              Fam1            6                  

App5                              Fam1            5                   

App4                              Fam1            4                   

App3                              Fam1            3                              

 

Application Name:         Support End Date:        Support Ended?:

App9                                                                    FALSE     

App8                              1/1/2015                       TRUE     

App7                              1/1/2015                       TRUE   

App6                              1/1/2015                       TRUE   

App5                                                                    FALSE   

App4                                                                    FALSE  

App3                                                                    FALSE

 

The Support Ended column is a added custom column. The application family is the grouping for which the applications are segemented in to. 

 

The Support End Date column is null for some of the older applications which is turning the boolean column in to false negatives.

 

The boolean formula is calculating if the support end date is not null and before today then TRUE.

 

What can I add in to the formula or column can I create to change the boolean to TRUE if the application has another application within the family of a higher version with a support end date before today?

1 ACCEPTED SOLUTION
Eric_Zhang
Microsoft Employee
Microsoft Employee

@seanrm42

You can try to create a calculated column as 

Support Ended? =
VAR last_app_ver_SE_date_is_not_null =
    MINX (
        FILTER (
            Table2,
            EARLIER ( RELATED ( Table1[Version] ) ) < RELATED ( Table1[Version] )
                && RELATED ( Table1[Family] ) = EARLIER ( RELATED ( Table1[Family] ) )
                && NOT ( ISBLANK ( Table2[Support End Date] ) )
                && Table2[Support End Date] < TODAY ()
        ),
        RELATED ( Table1[Version] )
    )
RETURN
    SWITCH (
        TRUE (),
        NOT ( ISBLANK ( Table2[Support End Date] ) )
            && Table2[Support End Date] < TODAY ()
            || NOT ( ISBLANK ( last_app_ver_SE_date_is_not_null ) ), TRUE (),
        FALSE ()
    )

Capture.PNG

View solution in original post

3 REPLIES 3
Eric_Zhang
Microsoft Employee
Microsoft Employee

@seanrm42

You can try to create a calculated column as 

Support Ended? =
VAR last_app_ver_SE_date_is_not_null =
    MINX (
        FILTER (
            Table2,
            EARLIER ( RELATED ( Table1[Version] ) ) < RELATED ( Table1[Version] )
                && RELATED ( Table1[Family] ) = EARLIER ( RELATED ( Table1[Family] ) )
                && NOT ( ISBLANK ( Table2[Support End Date] ) )
                && Table2[Support End Date] < TODAY ()
        ),
        RELATED ( Table1[Version] )
    )
RETURN
    SWITCH (
        TRUE (),
        NOT ( ISBLANK ( Table2[Support End Date] ) )
            && Table2[Support End Date] < TODAY ()
            || NOT ( ISBLANK ( last_app_ver_SE_date_is_not_null ) ), TRUE (),
        FALSE ()
    )

Capture.PNG

I cannot tell you how appreciative and amazed I am that you contructed that quickly.

 

Many thanks from me to you and this community.

Glad to help. 🙂

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!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.