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

If table A has "text" then calculate sum on 2 different tables

Hello,

 

I have 2 tables. Table A and Table B

 

If Table A contains "Accept" then it should equal calculate(sum(Table A Column C) - calcuatesum(Table B Column D)

If Table A does not contain "Accept" Then it should equal 0.

 

I've tried using IF/IS IN SCOPE, 

I've tried using the filter function

sumx filter

 

All are giving me sintax errors. Anyone know the best way to figure this out.

 

Thank you,

2 REPLIES 2
Anonymous
Not applicable

ABC.PNG

Awarded Carrier Linehaul comes from a differrent table then Linehaul. So if this row = Tender Reject I want Spend Variance Measure to = 0

 

If Tender Accept, it should calucate as it is below. 

EFG.PNG

 

So ideally should be a simple IF statement but I keep getting errors. 

HIJ.PNG

 

Let me know if this helps. 

v-binbinyu-msft
Community Support
Community Support

Hi @Anonymous ,

In order to better understand your demands and give the right solution, could you please provide some more specific information? such as your desensitized example data and a screenshot of your desired results?

Thanks for your efforts & time in advance.

 

Best regards,
Community Support Team_Binbin Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
July 2024 Power BI Update

Power BI Monthly Update - July 2024

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

July Newsletter

Fabric Community Update - July 2024

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