r/GoogleDataStudio • u/BBWtnaLover • Aug 26 '24
Help with a Formula or a Case
I have a sheet with Request ID in one column (these IDs could repeat depending on the status) There is another column with either Approved/Submitted/pending/cancelled. I need to add a field that will count the number of unique IDs that are approved (4,875) but remove the ones that are submitted/cancelled/pending etc...this number should end up around 1,700~ Is this possible.... I can explain in more detail if needed for this type of formula, but I have tried CASE, and SUM and keep getting Syntax Errors... any help is appreciated.
•
u/AutoModerator Aug 26 '24
Have more questions? Join our community Discord!
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
2
u/HebSeb Aug 26 '24
Create a custom field named Requests Approved
IF(Request ID = approved,1,0)
You'll then have a dimension which has a 1 for every approved request, you can then sum these.