Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hello ,
Im new to power bi,
can someone help me ?
How to filter using Not in ?
Thank you in advance,
Im having a hard time to solve it,
I will advance also..I dont like to subtract to get the output..
Thanks
Solved! Go to Solution.
Hi @Anonymous ,
You can find the pbix as attached. Also M code for your reference.
let Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WMlSK1YlWMgKTxmDSBEyagkkzMGkOJi2UYmMB", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type text) meta [Serialized.Text = true]) in type table [value = _t]), #"Changed Type" = Table.TransformColumnTypes(Source,{{"value", Int64.Type}}), #"Added Conditional Column" = Table.AddColumn(#"Changed Type", "Custom", each if [value] > 5 then "ok" else if [value] < 2 then "ok" else null) in #"Added Conditional Column"
Hi @Anonymous ,
You need to place the NOT formula on the column and then use the in to make the level you need.
So you measure should look something like this:
MEASURE NOT IN = CALCULATE ( SUM ( Table1[Value] ), FILTER ( Table1, NOT ( Table1[CAT LEVEL] ) IN { 2,3 } ) )
Typically for NOT In create an IN
not(brand in ('A','B'))
and use not on top of that
Good Day Sir,,
Thanks for your Feedback, Can you attached Some examples ?
Sorry for disturbing you
Hi @Anonymous ,
You can find the pbix as attached. Also M code for your reference.
let Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WMlSK1YlWMgKTxmDSBEyagkkzMGkOJi2UYmMB", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type text) meta [Serialized.Text = true]) in type table [value = _t]), #"Changed Type" = Table.TransformColumnTypes(Source,{{"value", Int64.Type}}), #"Added Conditional Column" = Table.AddColumn(#"Changed Type", "Custom", each if [value] > 5 then "ok" else if [value] < 2 then "ok" else null) in #"Added Conditional Column"
Stop posting useless files that do not help to answer the request.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
114 | |
97 | |
86 | |
70 | |
62 |
User | Count |
---|---|
151 | |
120 | |
103 | |
87 | |
68 |