operator
2 Topicsdynamic filtering of a virtual table using a measure
Hello I'm looking for advice on an issue (I'm new to Power BI). I have data that is used for benchmarking. The relevant table contains both the data to be benchmarked (dataA) and the data against which it will be benchmarked (dataB). To separate the data so that dataA is not included in dataB, as it's not good practice to include the data to be benchmarked in the data that it will be benchmarked against, I have created a virtual table that is filtered by a measure [Active Org]. The measure is controlled by a slicer that selects the client allowing us to see their data (dataA) in comparison with dataB. This virtual table it relatively straightforward: VirtualTable1 = filter(DataTable,DataTable[OrgID] = [Active Org]) the table itself doesn't appear to physically filter, but measures based on the table respond to the slicer. What I'd like to do it create the corresponding table containing dataB using the opposite command, such as: VirtualTable2 = filter(DataTable,DataTable[OrgID] <> [Active Org]) but . . . I can't get this to work at all. Can anybody advice here, please? Kind regardsSolved908Views0likes4CommentsUsing IF IN Operator
Hi, I tried the following dax which works using calculate, hwow to simply by using only If statement using IN operator aps=CALCULATE(If(countrows(Pop)>0,"Yes","No"),Pop[city] IN {"Arizona","Arkansas","California","Colorado"}) I need something like below: If(Pop[city] IN {"Arizona","Arkansas","California","Colorado"},"Yes","No") I tried this way but column(Pop[city]) is not showing in DAX editor.Solved3.6KViews0likes4Comments