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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Syndicate_Admin
Administrator
Administrator

DAX formula to use if you are getting the same value from another field

Hello!

I need help figuring out which DAX formula to use if I'm going to get the value in the Cost Recog field with the same value as with the actual Cost. See the table below.

What I need is the cost recognition value and this is the same value as with the actual cost

ProjectActual CostCost Recollect
Project 1$2,534,248.23$2,534,248.23
Project 2$1,633,649.00$1,633,649.00
1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi,@rsdet .
I am glad to help you.

According to your description, you want to create a DAX formula that allows you to compare the “Actual Cost” with the “Cost Recog” field and return the “Cost Recog” value when both values match. values match.
If I understand you correctly, you can refer to my test results below

You could create a calculate column
like this :

Cost_Value =

IF(

    [Actual Cost] = [Cost Recollect],

    [Cost Recollect],

    BLANK()

)


You need to make sure that these two values ([Actual Cost]  & [Cost Recollect])
are either measure or calculate columns.

vjtianmsft_0-1717034054751.png

I hope my suggestions give you good ideas, if you have any more questions, please clarify in a follow-up reply.

Best Regards,

Carson Jian,

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
Anonymous
Not applicable

Hi,@rsdet .
Has your problem been resolved?

I hope my suggestions give you good ideas, if you have any more questions, please clarify in a follow-up reply.

Best Regards,

Carson Jian,

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



Anonymous
Not applicable

Hi,@rsdet .
I am glad to help you.

According to your description, you want to create a DAX formula that allows you to compare the “Actual Cost” with the “Cost Recog” field and return the “Cost Recog” value when both values match. values match.
If I understand you correctly, you can refer to my test results below

You could create a calculate column
like this :

Cost_Value =

IF(

    [Actual Cost] = [Cost Recollect],

    [Cost Recollect],

    BLANK()

)


You need to make sure that these two values ([Actual Cost]  & [Cost Recollect])
are either measure or calculate columns.

vjtianmsft_0-1717034054751.png

I hope my suggestions give you good ideas, if you have any more questions, please clarify in a follow-up reply.

Best Regards,

Carson Jian,

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




Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors