Forum Discussion
abhiram342
Microsoft Employee
5 years agoHelp on Treatas DAX Code
Hi All, I want to create measure for below scenario but not working as expected. Can someone please assist? Scenario: I want to get distinct Products with either no internet sales or Offline...
Jihwan_Kim
Super User
5 years agoHi, abhiram342
Please correct me if I wrongly understood your question.
I assume you want to create a new table.
please try the below for creating a new table.
new table =
DISTINCT (
UNION (
SUMMARIZE (
FILTER ( InternetSales, InternetSales[SalesAmount] = 0 ),
InternetSales[ProductId]
),
SUMMARIZE (
FILTER ( OfflineSales, OfflineSales[SalesAmount] = 0 ),
OfflineSales[ProductId]
)
)
)
Hi, My name is Jihwan Kim.
If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.
Linkedin: linkedin.com/in/jihwankim1975/
Twitter: twitter.com/Jihwan_JHKIM