Forum Discussion
Help Converting an Excel countifs function into Power BI
Hi Anonymous
Try this calculated column for "number of single picks in aisle for single item orders"
number of single picks =
VAR check =
COUNTROWS (
FILTER (
ALL ( Orderwell_Summary ),
Orderwell_Summary[Column1] = EARLIER ( Orderwell_Summary[Column1] )
&& Orderwell_Summary[no. order lines] = 1
)
)
RETURN
IF ( check >= 1, check, 0 )Hi,
That seems to work for an overall count on all records but when i use my closed date filter / slider it does not filter this new column qty. it still reads the figure for all data.
Therefore one item will have a figure like 2192 next to it when i am expecting between 1 and 5 for a given day?
- Ashish_Mathur8 years agoSuper User
Hi,
If you wish to use a slicer, then no calculated column formula approach would work because a slicer selection does not cause a calculated column to recalculate. Calculated columns are recalculated only at the time of opening the file or when clicking on Refresh.
It will help a lot if you explain the data, the business problem and show your expected result.