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
arulmurugavel
Helper I
Helper I

Need to find if I recieved a phone call after sending voice mail from Dynamics 365 Data source

Hi People,

 

I am still new to Power BI. I need to create a report using Dynamics 365 data source.

 

I am having the below columns in an entity (let’s say Phone call).

OpportunityOutcomeCreated onDirectionSubject
ABCVoice mail12-01-2020Outgoingsee notes
ABCCall connected14-01-2020incomingClient called back
ABCVoice mail13-01-2019OutgoingFollowup
ABCCall connected14-01-2019OutgoingFollow call
EFGVoice mail25-12-2019Outgoingabcder
EFGCall connected12-01-2020incomingasfdfd
EFGCall connected12-01-2020Outgoingxcc
EFGCall connected13-01-2020Outgoingcdd
EFGVoice mail10-01-2020Outgoingdfdf
EFGCall connected11-01-2020incomingdfdf
EFGVoice mail10-01-2020Outgoingasd
GHIVoice mail29-09-2019Outgoingdfdf
GHICall connected01-01-2020incomingdsfdsf
GHIVoice mail10-01-2020Outgoingafaf
GHICall connected10-01-2020incomingasaf
JKLVoice mail31-12-2019Outgoingafasf
JKLCall connected01-01-2020incomingafd
JKLCall connected02-01-2020Outgoingafdfd

For each opportunity, I will have ‘n’ number of phone call activities. We will record ‘n’ number of voice mail outcome for the same opportunity. I need to find out if I received an incoming call after sending every voice mail for same opportunity. I need to view the reports as below

OpportunityVoice mail created onCall received if received call back?
ABC12-01-202014-01-2020yes
 13-01-2019 no
EFG25-12-201912-01-2020yes
 10-01-202011-01-2020yes
 10-01-2020 no
GHI29-09-201901-01-2020yes
 10-01-202010-01-2020yes
JKL31-12-2019 no
 31-12-201901-01-2020yes

and 

OpportunityCount of incoming calls
ABC1
EFG2
GHI2
JKL1

 

Thanks is advance,

Regards,

@arulmurugavel 

1 ACCEPTED SOLUTION

The date was taken as varchar - converted to date --- If the date is detected correctly no need

 

datein = mid(voicecall[Created on],4,2) &"/"& left(voicecall[Created on],2) & "/" & right(voicecall[Created on],4)
Column 1 = minx(FILTER(voicecall,voicecall[Opportunity]=EARLIER(voicecall[Opportunity]) && voicecall[datein]>=EARLIER(voicecall[datein]) && voicecall[Outcome]="Call connected" && EARLIER(voicecall[Outcome])<>"Call connected" && voicecall[Direction]="incoming" ),voicecall[datein])
Column 2 = minx(FILTER(voicecall,voicecall[Opportunity]=EARLIER(voicecall[Opportunity]) && voicecall[datein]>EARLIER(voicecall[datein]) && voicecall[Outcome]="Voice mail" && voicecall[Direction]="Outgoing" ),voicecall[datein])
Column 3 = if((ISBLANK(voicecall[Column 2]) || voicecall[Column 2]> voicecall[Column 1]) && not(ISBLANK(voicecall[Column 1])),"Yes","No")

 

Appreciate your Kudos. In case, this is the solution you are looking for, mark it as the Solution. In case it does not help, please provide additional information and mark me with @
Thanks. My Recent Blog -
https://community.powerbi.com/t5/Community-Blog/Winner-Topper-on-Map-How-to-Color-States-on-a-Map-wi...
https://community.powerbi.com/t5/Community-Blog/HR-Analytics-Active-Employee-Hire-and-Termination-tr...
https://community.powerbi.com/t5/Community-Blog/Power-BI-Working-with-Non-Standard-Time-Periods/ba-p...
https://community.powerbi.com/t5/Community-Blog/Comparing-Data-Across-Date-Ranges/ba-p/823601

 

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

4 REPLIES 4
amitchandak
Super User
Super User

Please refer

https://www.dropbox.com/s/t1emrwofubk3xt2/voicecall.pbix?dl=0

 

There is for EFG - 25-Dec, Because there is call on 10th Jan

 

Appreciate your Kudos. In case, this is the solution you are looking for, mark it as the Solution. In case it does not help, please provide additional information and mark me with @
Thanks. My Recent Blog -
https://community.powerbi.com/t5/Community-Blog/Winner-Topper-on-Map-How-to-Color-States-on-a-Map-wi...
https://community.powerbi.com/t5/Community-Blog/HR-Analytics-Active-Employee-Hire-and-Termination-tr...
https://community.powerbi.com/t5/Community-Blog/Power-BI-Working-with-Non-Standard-Time-Periods/ba-p...
https://community.powerbi.com/t5/Community-Blog/Comparing-Data-Across-Date-Ranges/ba-p/823601

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

Hi @amitchandak ,

Thanks for your support.

 

The file which you have shared is not opening in my Power BI desktop. It is showing the below error.

“The queries were authored with a newer version of Power BI desktop and might not work with your version”

After closing this error the file opened, but I think some part is missing. Need help

 

Regards,

Arul

The date was taken as varchar - converted to date --- If the date is detected correctly no need

 

datein = mid(voicecall[Created on],4,2) &"/"& left(voicecall[Created on],2) & "/" & right(voicecall[Created on],4)
Column 1 = minx(FILTER(voicecall,voicecall[Opportunity]=EARLIER(voicecall[Opportunity]) && voicecall[datein]>=EARLIER(voicecall[datein]) && voicecall[Outcome]="Call connected" && EARLIER(voicecall[Outcome])<>"Call connected" && voicecall[Direction]="incoming" ),voicecall[datein])
Column 2 = minx(FILTER(voicecall,voicecall[Opportunity]=EARLIER(voicecall[Opportunity]) && voicecall[datein]>EARLIER(voicecall[datein]) && voicecall[Outcome]="Voice mail" && voicecall[Direction]="Outgoing" ),voicecall[datein])
Column 3 = if((ISBLANK(voicecall[Column 2]) || voicecall[Column 2]> voicecall[Column 1]) && not(ISBLANK(voicecall[Column 1])),"Yes","No")

 

Appreciate your Kudos. In case, this is the solution you are looking for, mark it as the Solution. In case it does not help, please provide additional information and mark me with @
Thanks. My Recent Blog -
https://community.powerbi.com/t5/Community-Blog/Winner-Topper-on-Map-How-to-Color-States-on-a-Map-wi...
https://community.powerbi.com/t5/Community-Blog/HR-Analytics-Active-Employee-Hire-and-Termination-tr...
https://community.powerbi.com/t5/Community-Blog/Power-BI-Working-with-Non-Standard-Time-Periods/ba-p...
https://community.powerbi.com/t5/Community-Blog/Comparing-Data-Across-Date-Ranges/ba-p/823601

 

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

Hi @amitchandak ,

 

It works..Thanks a lot for your support 👍

 

Regards,

Arul

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!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

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.