Supplies are limited. Contact info@espc.tech right away to save your spot before the conference sells out.
Get your discountScore big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount
Hello all,
I have a rather complex problem and I am in need of a little help. I am not as familiar with DAX as I would like to be, which may be the reason I can't seem to figure this out.
My data set has:
- Different offices w/ an office code
- This office code is part of a larger code used in different proposal codes
- There is a regional vs. national tag for contributions to specific proposals
I need to make a list of proposals that a specific office made to themselves at a regional level. I was going to do this via a CONTAINS statement. Since the proposal code has the office code in it, if the office code had an exact match in the proposal code, then I would have the list I need. However, I have not been able to get this to work.
Any help would be appreciated on this!
Solved! Go to Solution.
Hi @Anonymous ,
I created some data:
Here are the steps you can follow:
1. Create measure.
Measure =
MAXX(
FILTER(ALL(Table2),
CONTAINSSTRING(
'Table2'[proposal codes],MAX('Table1'[office code]))=TRUE()),[Regional])
2. Result:
If the results don't meet your expectations, can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data. We can better understand the problem and help you.
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
Hi @Anonymous ,
I created some data:
Here are the steps you can follow:
1. Create measure.
Measure =
MAXX(
FILTER(ALL(Table2),
CONTAINSSTRING(
'Table2'[proposal codes],MAX('Table1'[office code]))=TRUE()),[Regional])
2. Result:
If the results don't meet your expectations, can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data. We can better understand the problem and help you.
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
@Anonymous It will be easier if you post some data with the expected output. Read this post to get your answer quickly.
https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.