Forum Discussion
michael_knight
Post Prodigy
6 years agoTarget Measure doesn't use current month, uses appended query
Hi, I'm trying to create a target measure. I've got two targets which are the same. The black line target in a formula target based on a numbers within the system, the red target is manually ...
v-eachen-msft
Community Support
6 years agoHi michael_knight ,
You need to add month() function as MONTH(SELECTEDVALUE('Full Date'[Full Date])). According to your situation, the month is the key to comparison. If you want to compare more carefully, you could refer to the following DAX:
IsCurrentMonth =
IF (
MONTH ( SELECTEDVALUE ('Full Date'[Full Date])) = MONTH ( NOW () )
&& YEAR ( SELECTEDVALUE ('Full Date'[Full Date])) = YEAR ( NOW () ),
[Target],
SELECTEDVALUE('Targets- WBAH'[Target], 'Targets- WBAH'[WBAH Target]) )
michael_knight
Post Prodigy
6 years agoHi v-eachen-msft ,
Thanks for the help. I've still had no luck. It shows the values that I want to show just the current month for every month
I am going to include the PBIX file if you want to see what I'm playing around with, it might make it easier.
https://www.dropbox.com/s/02mxxdtyu5hon77/Acquisitions%20-%20Community%202.pbix?dl=0
Thanks,
Mike