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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
cnoh
Frequent Visitor

How to find a distinguished value in a column

Hello all,

 

I would like to pull a distinct value in the ssubject column.  As you see can see the screenshot below, in a ssubject column, some have duplicate message title. If you see the column to the left, you can see some are replied.  I need to calculate how many days it took to reply to a message.  How can I pull the distinguished subject/value so I can calculate accordingly and not counting the duplicate messages.

 

cnoh_0-1746717839278.png

 

1 ACCEPTED SOLUTION
v-achippa
Community Support
Community Support

Hi @cnoh,

 

Thank you for reaching out to Microsoft Fabric Community.

 

To calculate how many days it took to reply per unique message, first remove duplicates based on the ssubject column, keeping only the first row to retain the original message. Then merge this duplicated table with the original table by matching on the ssubject column and in the second table filter where status = ‘Replied’. Expand the date column and name it as ‘ReplyDate’ and calculate the number of days between original message date and reply date.

This ensures duplicates are ignored and only one reply is tracked per conversation.

 

If this post helps, then please consider Accepting as solution to help the other members find it more quickly, don't forget to give a "Kudos" – I’d truly appreciate it! 

 

Thanks and regards,

Anjan Kumar Chippa

View solution in original post

3 REPLIES 3
v-achippa
Community Support
Community Support

Hi @cnoh,

 

Thank you for reaching out to Microsoft Fabric Community.

 

To calculate how many days it took to reply per unique message, first remove duplicates based on the ssubject column, keeping only the first row to retain the original message. Then merge this duplicated table with the original table by matching on the ssubject column and in the second table filter where status = ‘Replied’. Expand the date column and name it as ‘ReplyDate’ and calculate the number of days between original message date and reply date.

This ensures duplicates are ignored and only one reply is tracked per conversation.

 

If this post helps, then please consider Accepting as solution to help the other members find it more quickly, don't forget to give a "Kudos" – I’d truly appreciate it! 

 

Thanks and regards,

Anjan Kumar Chippa

Thank you!  I think it worked 😊  It looks good for far on my end.

maruthisp
Super User
Super User

Hi,

Am I the only one not able to see images in the posts? I couldn't find the images in the above post and also I can't see when I put images in the post after posting/replying. It is difficult to understand the context sometimes and images can help easily what the problem is.
Strange???
Best Regards,
Maruthi

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.