The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
Hi,
New to PowerBI and have hit my first wall.
I have 2 tables with a one to many relationship under Contact No. and I am trying to find the first interaction in another table based on multiple criteria.
I have tried creating a new column with the following criteria which is very messy but the only way i've managed to figure something out. However, I am now getting an error that there is not enough memory to complete this operations.
Can someone please help me find a better way to do this?
I have tried using an array instead but get an error on multiple values when a single value was expected.
Any help appreciated and please let me know if you need more information.
Thank you for your reply. The measure worked correctly but I was hoping to have a calculated column that I could use for further visuals if possible.
A measure as I understand is limited as it doesnt associated with the rest of the table.
I tried using the working measure to calculate a column in the Contact Table but it only returned one result for every Contact No.
Thanks again for your assistance.
@HappyHammer15 , In measure when you use other table you have use max or selected value
Contact
You can use in for multiple value, I have put some sample values
example measure =
calculate( firstnonblank('Interaction Log Entry'[Interaction Template Code],1),
filter('Interaction Log Entry','Interaction Log Entry'[Contact No_]= max(Contact[No_]) && 'Interaction Log Entry'[Interaction Template Code] in {"INORDFAIL", "INPHONE","INLETTER","INEMAIL","INCONTACT","INCALLBACK","PHONETICKE")
)
User | Count |
---|---|
26 | |
10 | |
8 | |
6 | |
6 |
User | Count |
---|---|
31 | |
12 | |
10 | |
10 | |
9 |