The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
I am trying to calculate a measure using below formula , But its not filtering properly
NOT EQUAL OPERATOR<> Not giving desired output
Please advice thanks
Franchise = CALCULATE(
SUM('Model'[Sales]),
FILTER(
'Model',
('Model'[Store] = "1" && 'Model'[AccountID] <> "11435") ||
('Model'[Store] = "2" && 'Model'[AccountID] <> "15663") ||
('Model'[Store] = "3" && 'Model'[AccountID] <> "9863") ||
('Model'[Store] = "4" && 'Model'[AccountID] <> "9483") ||
('Model'[Store] = "5" && 'Model'[AccountID] <> "11435" )||
('Model'[Store] = "1" && 'Model'[AccountID] <> "8351") ||
('Model'[Store] = "3" && 'Model'[AccountID] <> "9288") ||
('Model'[Store] = "4" && 'Model'[AccountID] <> "9288") ||
('Model'[Store] = "5" && 'Model'[AccountID] <> "8351") ||
('Model'[Store] = "1" && 'Model'[AccountID] <> "4378") ||
('Model'[Store] = "2" && 'Model'[AccountID] <> "4378") ||
('Model'[Store] = "3" && 'Model'[AccountID] <> "8411") ||
('Model'[Store] = "4" && 'Model'[AccountID] <> "8411") ||
('Model'[Store] = "5" && 'Model'[AccountID] <> "4378") ||
('Model'[Store] = "6" && 'Model'[AccountID] <> "4378" )
)
)
Solved! Go to Solution.
Please help which opertor to be used if arguement to be filtered is set as "Text". Operator "< >" is not working for filtering @ "Not Equal to".
Thansk in advance
Thanks for your help @GilbertQ it worked when I changed data type of parent id, FROM TEXT TO WHOLENUMBER
Thanks
Mazhar
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the August 2024 Power BI update to learn about new features.
Learn from experts, get hands-on experience, and win awesome prizes.
User | Count |
---|---|
112 | |
80 | |
78 | |
43 | |
37 |
User | Count |
---|---|
157 | |
112 | |
64 | |
60 | |
54 |