Forum Discussion
search formula
Hello that such, your help please, I want to make a formula in PBI that adds the current and non-current assets for each company.
The result is in the last column "Total assets", in excel I could do it with the formula sum.if.set.
I was doing the formula but only using code 101, I am missing the filter of 102 and the Company.
Best regards
2 Replies
- parry2kSuper User
Syndicate_Admin add a measure
Measure = CALCULATE ( SUM ( Table[Column] ), REMOVEFILTER ( Table[Codigo] ) )✨ Follow us on LinkedIn
Learn about conditional formatting at Microsoft Reactor
My latest blog post The Power of Using Calculation Groups with Inactive Relationships (Part 1) (perytus.com) I would ❤ Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos to whoever helped to solve your problem. It is a token of appreciation!
⚡ Visit us at https://perytus.com, your one-stop-shop for Power BI-related projects/training/consultancy.⚡
- v-easonf-msftCommunity Support
Hi, Syndicate_Admin
You can try measure as blow:
Result = VAR _company = MAX ( 'Table'[Company] ) VAR _code = MAX ( 'Table'[Code] ) RETURN CALCULATE ( SUM ( 'Table'[Amount] ), FILTER ( ALL ( 'Table' ), 'Table'[Company] = _company && 'Table'[Code] IN { "101", "102" } ) )Best Regards,
Community Support Team _ Eason
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.