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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Anonymous
Not applicable

Identifying ISSAME

Hi guys,

 

Needing some help trying to make a measure to identify when a name in one column is linked to two separate values in another.

 

I want to quantify when an Agent both receives and processes a contract for the same business. I have tried creating a column but it doesn't seem to work because the values in "type of change" are in the same column Here is my data:

Date BusinessType of ChangeName of Agent
12/10/20Joe's AutoContract ReceivedJames
12/10/20Joe's AutoContract ReceivedJames
12/10/20Jack's SalonContract ReceivedJames
12/10/20Jack's SalonContract ActivatedHelen


Can anyone help me?

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Anonymous , Did no see ant processed row.

You need to have column like


if(calculate(distinctcount(Table[Type of Change]), filter(Table, [Name of Agent] = earlier([Name of Agent]) && [Type of Change] in {"Received","processes"}
&& [Date] = earlier([Date]))) =2, 1,0)

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

View solution in original post

3 REPLIES 3
amitchandak
Super User
Super User

@Anonymous , Did no see ant processed row.

You need to have column like


if(calculate(distinctcount(Table[Type of Change]), filter(Table, [Name of Agent] = earlier([Name of Agent]) && [Type of Change] in {"Received","processes"}
&& [Date] = earlier([Date]))) =2, 1,0)

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here
Anonymous
Not applicable

Sorry, I actually realised this is not the solution.

 

I meant to say I need to find usernames who have both Contract Received and Contract Activated.

 

I tried to adjust the column but the results returned do not correctly show Business names where both the same agent received and activated the contract

Anonymous
Not applicable

Thank you 🙂

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.