Multi filters

BORUCH

Well-known Member
Joined
Mar 1, 2016
Messages
528
Office Version
  1. 365
Platform
  1. Windows
HI
I HAVE THIS FORMULA

Sales Flag:=IF(NOT(ISEMPTY(CALCULATETABLE('sales','sales'[Qty Ord] >0))),"Had Sales","Had No Sales")

Two questions

#1
how can i have this formula also do a filter for [qty ord] is less the ZERO
I want it to tell me only if its less then zero or greater the zero not equal zero

#2
HOW CAN I HAVE THIS AS A SLICER (FILTER)
HAD SALES
HAD NO SALES
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
Regarding 1, why do you have this formula? What is its purpose? The reason I ask is that Power Pivot is different to Excel, and you don't need to replicate Excel concepts - there can be different/better approaches.
 
Upvote 0
Regarding 1, why do you have this formula? What is its purpose? The reason I ask is that Power Pivot is different to Excel, and you don't need to replicate Excel concepts - there can be different/better approaches.

This formula tells me if an item was sold for that customer, or for that month, or whatever, it looks at my detail invoice history table and tells me if that item is there (IF IT WAS SOLD)
 
Upvote 0
So why do you need it? If you put items in a pivot table for a month, if it sold you will see it, it if didn't sell you won't see it. If you want to see products that didn't sell, you can write a measure for that too.
 
Upvote 0
ok let me explain

I have my products table connected to my invoice history detail table, so I can drag my item # from my products table, and then drag my sales flag to the values section, and I can filter by my customer # in my detail table to see if that customer bought that product this month etc.

If you have a better formula please let me know, this is a very simple formula I just want to add another filter, and be able to filter by “has sales”, and “has no sales”
 
Upvote 0
Haven't confirmed, but I assume your formula is a calc column. The problem is that it is a static result based on the latest data. If you want to see customers that didn't purchase last month, or time series trend you can't do it with this approach?

try this as a measure for products that sell

=calculate(countrows(products),InvoiceHistoryTableName)
and products that don't sell

=calculate(countrows(products),filter(products,[total Sales measure]=0))
 
Last edited:
Upvote 0
Haven't confirmed, but I assume your formula is a calc column. The problem is that it is a static result based on the latest data. If you want to see customers that didn't purchase last month, or time series trend you can't do it with this approach?

try this as a measure for products that sell

=calculate(countrows(products),InvoiceHistoryTableName)
and products that don't sell

=calculate(countrows(products),filter(products,[total Sales measure]=0))

Thanks for your time

I would like to keep my original formula, which works best for me!, just to have the ability to have two filters, and have the ability to have a slicer, with two options, have sales, and have no sales.
this is the easiest way for me, any suggestions maybe a disconnected table is appreciated.

Thanks
 
Upvote 0

Forum statistics

Threads
1,214,381
Messages
6,119,192
Members
448,874
Latest member
Lancelots

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top