Dashboard buttons can be setup to select Variable Numbers, Locations, SampleNumbers, etc... and place the selected text on the dashboard. This allows you to make dynamic dashboards where the user picks what is displayed by passing these selections to SQLFIRST, MVSTAT functions or Quick Trend, Year Over Year Graphs.
Example 1 - Allow user to select VarNum to display Variable Info, Average, Min and Max.
- Use Dashboard>Button in Spread Design.
- Click Misc and choose Pick VarNum.
- Enter the button text
- Click OK
- Enter a default varnum in C3 (the cell that will be set when a Varnum is selected). The Pick Varnum will place the text in the cell to the right when it is used in a dashboard. Hint: You can merge B3 and C3 if you want to hide the text that the pick returns and you can still refer to C3 to see the data.
- Enter the following formulas:
- C5: =VINFO($C$2,"VarDisp")
- C6: =VINFO($C$2,"Units")
- C7: =GAVG($C$2,1,"R")
- C8: =GMIN($C$2,1,"R")
- C9: =GMAX($C$2,1,"R")
Example 2: Allow user to select Multiple VarNums to display Variable Info, Average, Min and Max.
- Use Dashboard>Button in Spread Design.
- Click Misc and choose Pick VarNums.
- Enter the button text
- Click OK.
- Enter a comma separated list of VarNums in C3 to use as the default. The Pick Varnums will place a comma separated list in the cell to the right when it is used in a dashboard. Hint: You can merge B2 and C2 if you want to hide the text that the pick returns and you can still refer to C32 to see the data.
- To display each VarNum Individually use the Split function.
- C4 =Split(C3,",",1)
- D4 =Split(C3,",",2)
- E4 =Split(C3,",",3)
- ...
- Enter the following formulas:
- C5: =VINFO($C$2,"VarDisp")
- C6: =VINFO($C$2,"Units")
- C7: =GAVG($C$2,1,"R")
- C8: =GMIN($C$2,1,"R")
- C9: =GMAX($C$2,1,"R")
- Highlight C5:C9, F5 Copy Special, Highlight D5:J5 and F6 Paste Special.
|
|
|
|
No Related Articles Available.
|
|
|
|
No Attachments Available.
|
|
|
|
No Related Links Available.
|
|
|
|
|
|
|
No user comments available for this article.
|
|
|
|
|
|
Created on 4/2/2020 12:13 PM. |
|
Last Modified on 4/20/2020 11:19 AM. |
|
Last Modified by Scott Dorner. |
|
Article has been viewed 2300 times. |
|
Rated 8 out of 10 based on 2 votes. |
|
Print Article |
|
Email Article
|
|
|