Forum Discussion
RichardJ
3 years agoResponsive Resident
DAX Measure for a COUNT function syntax
Hi, I'm using a parameter 'Target' to determine a Target 1 can be changed to a chosen value 2 updates with a status depending on whether the 'Actual' Values match the Target Values and generate...
- 3 years ago
Total Met Plan = var a = SUMMARIZE(Actuals_By_Location,Actuals_By_Location[Location],Actuals_By_Location[Week Number],"d",[Delta Status]) return countrows(filter(a,[d]="Met Plan")) - 3 years ago
Hi,
This measure works
Total Met Plan = COUNTROWS(FILTER(GENERATE(VALUES(Actuals_By_Location[Location]),VALUES(Actuals_By_Location[Week Number])),[Delta From Plan]>=0))Hope this helps.
Ashish_Mathur
3 years agoSuper User
Hi,
This measure works
Total Met Plan = COUNTROWS(FILTER(GENERATE(VALUES(Actuals_By_Location[Location]),VALUES(Actuals_By_Location[Week Number])),[Delta From Plan]>=0))
Hope this helps.
- RichardJ3 years agoResponsive Resident
Thanks Ashish for the response. This works perfectly
File includding your formula now uploaded to dropbox
https://www.dropbox.com/s/uugo5zlsiwxfk0t/Measure_Syntax_Questions_Parameters.pbix?dl=0- Ashish_Mathur3 years agoSuper User
You are welcome.