Hi all, im trying to create a measure that would count all rows where the column date is 1st day of next month however im getting an error when using the CALCULATE function.
"A function "CALCULATE" has been used in a true or false expression that is used as a table filter expression. This is not allowed."
Thank you in advance
Hi @georgec96
please try
DK orders Left =
VAR NextMonth =
EOMONTH ( ebs_lcl_open_lines[order_due_date], 0 ) + 1
RETURN
CALCULATE (
COUNT ( ebs_lcl_open_orders[oracle_order_number] ),
ebs_lcl_open_orders[due_date] = NextMonth
)
@georgec96
Yes you can
DK orders Left =
VAR NextMonth =
EOMONTH ( MAX ( ebs_lcl_open_lines[order_due_date] ), 0 ) + 1
RETURN
CALCULATE (
COUNT ( ebs_lcl_open_orders[oracle_order_number] ),
ebs_lcl_open_orders[due_date] = NextMonth
)
column due_date containts the date 1st of july 2022 which is what I want to count.
I was hoping that the measure will return a count of all those rows where the due_date is 1st of july 2022
Ok then let's return nextmonth
DK orders Left =
VAR NextMonth =
EOMONTH ( MAX ( ebs_lcl_open_lines[order_due_date] ), 0 ) + 1
VAR Result =
CALCULATE (
COUNT ( ebs_lcl_open_orders[oracle_order_number] ),
ebs_lcl_open_orders[due_date] = NextMonth
)
RETURN
NextMonth
Hi @tamerj1 I have used the following formula
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
Mark your calendars and join us on Thursday, June 30 at 11a PDT for a great session with Ted Pattison!
User | Count |
---|---|
99 | |
34 | |
32 | |
27 | |
22 |
User | Count |
---|---|
121 | |
49 | |
43 | |
33 | |
20 |