Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Highlight or call out variables not in use in a Measure #934

Closed
edhans opened this issue Jun 28, 2023 · 2 comments
Closed

Highlight or call out variables not in use in a Measure #934

edhans opened this issue Jun 28, 2023 · 2 comments
Assignees
Labels
feature: backlog A feature improvement has been added to the backlog feature: enhancement Request is a enchacement to existing feature

Comments

@edhans
Copy link

edhans commented Jun 28, 2023

Is your feature request related to a problem? Please describe.
When I am modifying or debugging measures, I often create variables or change which variables are used to get the result. I often wind up with variables that are unnecessary in the final result.

Describe the solution you'd like
I'd like some sort of visual indicator in the Expression editor for variables that are not called anywhere else in the expression. I know it doesn't cause a performance issue, just a code readability issue, and it confuses Future Ed sometimes.

It could be a button to highlight unused variables, or even variable chains. Example:

varFirstValue is used by varSecondValue, and that is used in varThirdValue, but none of those can actually impact the results of the measure, they were orphaned debug code or left over from the original version of a measure that got reworked.

Describe alternatives you've considered
I currently just comment out suspect variables and see if I get error messages.

@edhans edhans added the feature: enhancement Request is a enchacement to existing feature label Jun 28, 2023
@corycundy
Copy link

I think this is a great idea!

@DBojsen
Copy link
Collaborator

DBojsen commented Jul 18, 2023

Great idea - I put it on the backlog. No ETA yet.

@DBojsen DBojsen self-assigned this Jul 18, 2023
@DBojsen DBojsen added the feature: backlog A feature improvement has been added to the backlog label Jul 18, 2023
@TabularEditor TabularEditor locked and limited conversation to collaborators Oct 12, 2023
@mlonsk mlonsk converted this issue into discussion #1037 Oct 12, 2023

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
feature: backlog A feature improvement has been added to the backlog feature: enhancement Request is a enchacement to existing feature
Development

No branches or pull requests

3 participants