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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Dee
Helper III
Helper III

Measure On Conversion Of Calls

Hi all,

Am trying to do a call conversion, that checks if the customer did a purchase 10 days after making a call, the measure is somehow not working well on power bi nor SSAS, someone kindly help me out on that.

 

=if(ISBLANK(COUNTROWS((FILTER(FILTER(CustomerTransactionsView, CustomerTransactionsView[MobileNo] = Interactions_MobileNo[PhoneNumber]), (CustomerTransactionsView[TransactionDate] >= (Interactions_MobileNo[CreatedOn] && (CustomerTransactionsView[TransactionDate]<  DATEADD(Interactions_MobileNo[CreatedOn],10,DAY)) )))), "NO", "YES")))

 

1 ACCEPTED SOLUTION
v-frfei-msft
Community Support
Community Support

Hi @Dee ,

 

Please have a try. If it doesn't meet your requirement, kindly share your sample data and excepted result to me if you don't have any Confidential Information. Please upload your files to One Drive and share the link here.

 

 =
IF (
    ISBLANK (
        COUNTROWS (
            FILTER (
                CustomerTransactionsView,
                CustomerTransactionsView[MobileNo] = Interactions_MobileNo[PhoneNumber]
                    && CustomerTransactionsView[TransactionDate] >= Interactions_MobileNo[CreatedOn]
                    && CustomerTransactionsView[TransactionDate] < ( Interactions_MobileNo[CreatedOn] - 10 )
            )
        )
    ),
    "NO",
    "YES"
)
Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.

View solution in original post

3 REPLIES 3
v-frfei-msft
Community Support
Community Support

Hi @Dee ,

 

Please have a try. If it doesn't meet your requirement, kindly share your sample data and excepted result to me if you don't have any Confidential Information. Please upload your files to One Drive and share the link here.

 

 =
IF (
    ISBLANK (
        COUNTROWS (
            FILTER (
                CustomerTransactionsView,
                CustomerTransactionsView[MobileNo] = Interactions_MobileNo[PhoneNumber]
                    && CustomerTransactionsView[TransactionDate] >= Interactions_MobileNo[CreatedOn]
                    && CustomerTransactionsView[TransactionDate] < ( Interactions_MobileNo[CreatedOn] - 10 )
            )
        )
    ),
    "NO",
    "YES"
)
Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.
vanessafvg
Super User
Super User

@Dee 

 

  can you share some data and what your data looks like?





If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




The data roughly looks like this.

 

Table = Customer Transaction View

Column = MOBILE NO

Value         557689321

 

Table = Interaction Mobile no

Column = phone no

Value         557689321

 

Table = Customer Transaction View

Column = transaction date

Value        5/2/2017

 

Table = Interaction Mobile no

Column = created on

Value         4/19/2017

 

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.