Forum Discussion

Sadapa07's avatar
Sadapa07
Frequent Visitor
7 years ago
Solved

Multiple Case When statement in DAX from OBIEE

Hi EveryOne,   I have a Product table and FactTable and my code looks like this, I am trying to replicate this below OBIEE multiple case statements in Power BI using DAX   CASE WHEN ( SUM (CAS...
  • Sadapa07's avatar
    Sadapa07
    7 years ago

    Hi v-piga-msft ,

     

    Thanks for the information, yes I created a measure, 

     

    IF (
    CALCULATE (
    DISTINCTCOUNT ( FactTable[Billing_ID] ),
    FILTER ( FactTable, FactTable[Renewal] = "Y" ),
    ALLEXCEPT (
    Product,
    Product[Billing_ID]
    )
    ) = 0,
    "Y",
    "N"
    )

     

    This works for my requirement.

     

    Thanks,

    Sadapa07