Forum Discussion
cpatterson
7 years agoHelper I
How to COUNTIF within a specified date range
Hi again, I'm trying to use the Gauge visual to demonstrate target completion vs actual completion based on enrollment dates. I think I need a measure to calculate how many values are in a column...
MFelix
7 years agoSuper User
Hi cpatterson
Try the following measure:
Count plans out =
CALCULATE (
COUNT ( 'Subscription Plans'[Learning Plan Name] );
'Subscription Plans'[Completion] = "";
FILTER (
ALL (
'Subscription Plans'[Subscription Date];
'Subscription Plans'[Learning Plan Name]
);
'Subscription Plans'[Subscription Date]
<= EDATE (
TODAY ();
IF ( 'Subscription Plans'[Learning Plan Name] = "Gold Reel"; -6; -12 )
)
)
)
Replace the column names by your model information and in the Gold Reel replace it by the plan that as only 6 months, in my example I call it Gold Reel to test out.
Regards,
MFelix
- cpatterson7 years agoHelper I
Hi MFelix ,
Thank you for your help! Sorry for the delay in responding to this... I created the measure but when I add it to the visual (or any visual), it says "Can't display the visual."
Do you have an idea on what could be causing this?