cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
SedoSan
Frequent Visitor

Measure or column for conversion rate

I've been trying to figure this out but it keeps confusing me more and more.

 

I have a column called "Payment Status" which has the following items:

  • Paid
  • Partial Payment
  • Pending
  • Approved
  • Remodefy
  • Cancelled
  • Terminated
  • Void

I'm trying to show the "Conversion Rate" which equals count of (paid + partial payment + approved + Terminated)
devided by count of (paid + partial payment + pending + Approved + Cancelled + Terminated)

"Remodify" and "Void" should not be included in any of them.

I want to show it as a visual "Guage", for some reason I can't seem to be able to get the function to work.

1 ACCEPTED SOLUTION

Accepted Solutions
LivioLanzo Solution Sage
Solution Sage

Re: Measure or column for conversion rate

You can calculated your 2 measures like this: 

 

 

=
CALCULATE (
    COUNTROWS ( DB ),
    TREATAS (
        { "Paid""Partial Payment""Approved""Terminated" },
        DB[Payment Status]
    )
)

 


=
CALCULATE (
    COUNTROWS ( DB ),
    TREATAS (
        { "Paid""Partial Payment""Pending""Terminated""Cancelled" },
        DB[Payment Status]
    )
)

 


 


Did I answer your question correctly? Mark my answer as a solution!


Proud to be a Datanaut!  

View solution in original post

4 REPLIES 4
LivioLanzo Solution Sage
Solution Sage

Re: Measure or column for conversion rate

You can do it using CALCULATE but we are going to need to see a bit more data in order to provide the exact measure. @SedoSan

 


 


Did I answer your question correctly? Mark my answer as a solution!


Proud to be a Datanaut!  

SedoSan
Frequent Visitor

Re: Measure or column for conversion rate

What kind of data?

I have a table called DB, inside it this column called "Payment Status"

LivioLanzo Solution Sage
Solution Sage

Re: Measure or column for conversion rate

You can calculated your 2 measures like this: 

 

 

=
CALCULATE (
    COUNTROWS ( DB ),
    TREATAS (
        { "Paid""Partial Payment""Approved""Terminated" },
        DB[Payment Status]
    )
)

 


=
CALCULATE (
    COUNTROWS ( DB ),
    TREATAS (
        { "Paid""Partial Payment""Pending""Terminated""Cancelled" },
        DB[Payment Status]
    )
)

 


 


Did I answer your question correctly? Mark my answer as a solution!


Proud to be a Datanaut!  

View solution in original post

SedoSan
Frequent Visitor

Re: Measure or column for conversion rate

Instead of creating 2 measures I just divided the top over the bottom one.

it worked, didn't know about "TREATAS" function.

 

Thanks!

Helpful resources

Announcements
New Ranks Launched March 24th!

New Ranks Launched March 24th!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power BI Community!

‘Better Together’ Contest Finalists Announced!

‘Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

Arun 'Triple A' Event Video, Q&A, and Slides

Arun 'Triple A' Event Video, Q&A, and Slides

Missed the Arun 'Triple A' event or want to revisit it? We've got you covered! Check out the video, Q&A, and slides now.

Join THE global Microsoft Power Platform event series.

Join THE global Power Platform event series.

Attend for two days of expert-led learning and innovation on topics like AI and Analytics, powered by Dynamic Communities.

Community Summit North America

Community Summit North America

Innovate, Collaborate, Grow. The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors