Forum Discussion
nuttybuddy
8 years agoFrequent Visitor
Use WHERE condition in DAX
Hi guys
IN SAP Web intelligence, there is a WHERE function available just like SQL.
I want to reproduce the below formula in a calculated column in PBI as below
Total Sales USA = [TotalSales] where ([Coutry] = 'USA'
Any help will be greatly appreciated
thanks
Total Sales USA = CALCULATE([TotalSales], [Coutry] = "USA")
3 Replies
- Greg_DecklerCommunity Champion
Total Sales USA = CALCULATE([TotalSales], [Coutry] = "USA")
- AnonymousNot applicable
This doesn't work in PowerBI Desktop
- k3rz0rgAdvocate III
Yes, same with me, that solution does not work on PBD, not sure why that answer was selected as the right answer by the bot!