Forum Discussion
Anonymous
5 years agoNot applicable
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...
- 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 regardsDenisBlog: WhatTheFact.biFollow me: twitter.com/DenSelimovic
selimovd
Most Valuable Professional
5 years agoHey 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
Blog: WhatTheFact.bi
Follow me: twitter.com/DenSelimovic
selimovd
Most Valuable Professional
5 years agoHey Anonymous ,
did the version with INTERSECT work?
I'm curious if you could solve this issue 🙂
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
Blog: WhatTheFact.bi
Follow me: twitter.com/DenSelimovic
- Anonymous5 years agoNot applicable
Hi selimovd sorry for the delay.
yes your solution worked. Just to be sure, when i add the INTERSECT formula into my measure i get the same result of a standard relationship, is that correct?
thanks
Luca
- selimovd5 years ago
Most Valuable Professional
Hey Anonymous ,
depends on the relationship, but in general yes 😉
Best regards
Denis