Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

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.

Reply
Adore921
Frequent Visitor

Filter out all Sales records that is ranged between $1 >< $-1

Hey guys,

 

The filter on the query can only choose "Between" 2 values, but not "NOT between" 2 values.

May I know how I can filter out all the sales records keeping only those that are NOT between value $1 =><=-1?

 

Thanks tons. 

4 REPLIES 4
v-kkf-msft
Community Support
Community Support

Hi @Adore921 ,

 

Has your problem been solved? If it is solved, please mark a reply which is helpful to you.

 

If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.


Best Regards,
Winniz

Adore921
Frequent Visitor

Hi Samarth,

 

Thanks so much for the help, but it didn't solve the issue as I'm using The Sum of NetSales to calculate margin on another measure.. not sure if that's impacting the filter?

 

I need to filter out all the sales record that are between -1 to 1 as they are admin issues and giving me all the crappy result when I do avg margin % .

Adore921_1-1647037674407.png

 

Hi @Adore921 ,

 

Are you trying to filter on un-summarized sales? In that case, try creating the new column.

 

Is-1_1 = 
IF ( 'Table'[Sales] <= 1 && 'Table'[Sales] >= -1, 1, 0 )

vkkfmsft_0-1647337291744.pngvkkfmsft_1-1647337306910.png


If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

Samarth_18
Community Champion
Community Champion

Hi @Adore921 ,

 

Please create a measure like this and use it as filter on your visual:-

_filter =
if (SUM ( Table1[record] ) <= 1 && SUM ( Table1[record] ) >= -1,1,0)

Output:-

Samarth_18_0-1647031973662.png

 

Thanks,

Samarth

 

Best Regards,
Samarth

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Connect on Linkedin

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.