Forum Discussion

SedoSan's avatar
SedoSan
Frequent Visitor
7 years ago
Solved

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 Rem...
  • LivioLanzo's avatar
    LivioLanzo
    7 years ago

    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]
        )
    )