Tiger1
November 13, 2020, 10:13pm
1
I wrote an expression to give me the revenue of a certain branch (based on _THISROW) and the it is the current month.
I have data in the table and it keeps giving me $0 as the value.
My expression:
SUM(SELECT(Revenue Table[Revenue], AND(
Month([date]) = [Month],
[branch] = [_THISROW].[branch])
)
)
hru
November 14, 2020, 12:18am
2
Tiger:
Month([date]) = [Month],
Is [Month] a number type column?
Maybe also check using EOMONTH to get the current month, such as:
SUM(
SELECT(Revenue Table[Revenue],
AND(
EOMONTH([date],0) = EOMONTH(TODAY(),0),
[branch] = [_THISROW].[branch])
)
)
6 Likes
@Tiger can you share a screenshot of your table?
Tiger1
November 16, 2020, 2:55pm
4
Yes - [Month] is a number.