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

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

Reply
Anonymous
Not applicable

DAX Query for a calculated measure or column

Need the dax query for the below conditions in screen shot. There are two tables FKTA_F_ALTERED_MESSAGES and FKTA_F_ACTIONS with one to one relationship.

 

Screenshot 2021-04-18 151924.jpg

1 ACCEPTED SOLUTION
Icey
Community Support
Community Support

Hi @Anonymous ,

 

Please check if this measure could work:

Measure =
IF (
    MAX ( 'FKTA_F_ALTERED_MESSAGES'[FLAG_LIVEHIST] ) = 1,
    MAX ( 'FKTA_F_ALTERED_MESSAGES'[CURRENT_DATE] )
        - CALCULATE (
            MAX ( 'FKTA_F_ACTIONS'[ACTION_DATETIME] ),
            'FKTA_F_ACTIONS'[FKCO_STATUS] = 17
        )
)

 

In addition, please share us more details.

Reference: How to Get Your Question Answered Quickly - Microsoft Power BI Community

 

 

Best Regards,

Icey

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
Icey
Community Support
Community Support

Hi @Anonymous ,

 

Please check if this measure could work:

Measure =
IF (
    MAX ( 'FKTA_F_ALTERED_MESSAGES'[FLAG_LIVEHIST] ) = 1,
    MAX ( 'FKTA_F_ALTERED_MESSAGES'[CURRENT_DATE] )
        - CALCULATE (
            MAX ( 'FKTA_F_ACTIONS'[ACTION_DATETIME] ),
            'FKTA_F_ACTIONS'[FKCO_STATUS] = 17
        )
)

 

In addition, please share us more details.

Reference: How to Get Your Question Answered Quickly - Microsoft Power BI Community

 

 

Best Regards,

Icey

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

lbendlin
Super User
Super User

if there is a 1:1 relationship can you merge the tables?

 

Please provide sample data in usable format (not as a picture) and show the expected outcome.

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.