Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

TREATAS in Power Pivot

Hi All, i am trying to use "TREATAS" function in a Power Pivot model (so in Excel). It seems that this function does not exist. Is this a problem related to the excel version or this function is ava...
  • selimovd's avatar
    selimovd
    5 years ago

    Hey Anonymous ,

     

    without knowing your data source I think the following measure should give you the same result:

    Ordinato2 =
    CALCULATE(
        SUM( 'Sales Orders'[ValoreOrdinato #] ),
        INTERSECT(
            ALL( 'Sales Orders'[COMMESSA_RIF] ),
            VALUES( Database[COMMESSA_RIF] )
        )
    )

     

    If you need any help please let me know.
    If I answered your question I would be happy if you could mark my post as a solution ✔️ and give it a thumbs up 👍
     
    Best regards
    Denis