Forum Discussion
APEREZ2
Advocate I
4 years agoFilter based on different columns depending on user selection
Good morning, I want to create a report that detects everything affect a company like a IN OUT and show in a unique column. I try to do this with a measure like that: CALCULATE(count(Orders), ...
amitchandak
Super User
4 years agoAPEREZ2 , Ideally you should use an independent company table for filter.
or try like
CALCULATE(count(Orders), filter(Data,Data[Company Recipient]=SELECTEDVALUE(DimCompany[Company]) || Data[Company Sender]=SELECTEDVALUE(DimCompany[Company])) , crossfilter(DimCompany[Company],Data[Company Recipient], none ))
Need of an Independent Table in Power BI: https://youtu.be/lOEW-YUrAbE