How can I add the Count Value from a Slice, to the appropriate Custom Sub Menu Name? As the user is looking at a sub-menu with five different selections, I want them to see the number of items associated with that selection.
I have a table named Homes. This table contains information submitted by clients requesting work to be performed on their home. Each application can have one of five different statuses. They are, New, Being Reviewed, Needs Inspection, Inspector Assigned and Declined. I have a slice for each status. I have added five virtual columns to the main table Homes, to count each of these status types. All of that is working, so I know how many homes are in each status and view.
My custom Menu has a sub menu with a listing for each of these status types. When the user clicks on one of these selections, they see a card view of each home having the menu status. Example: Menu Name is New Applications, when the user clicks this menu selection, they see only New home applications and their associated information.
What I would like to do is add the Count Value from each slice to the Menu name for a quick reference as to how many listings will be found under each menu type. So, If I have five New Applications, I would like to see the Menu name of New Applications 5, and if the Declined status has two I would like the Menu selection(Name) Applications Decline 2.
Hope this makes sense.
Solved! Go to Solution.
Supposing your MENU table has a column STATUS corresponding to each submenu row, then you can try something like the following and show it as submenu.
"NEW HOME APPLICATIONS - " & COUNT(FILTER("HOMES", [STATUS]=[_THISROW].[STATUS])
I have not been able to make this work.
Any other suggestions?
How is your menu constructed? If one menu is one data row in a "MENU" table, you can add a VC to place the expression in.
I was able to accomplish this with the VC and Expression. Hoping there is a better expression.
User | Count |
---|---|
33 | |
11 | |
3 | |
2 | |
2 |