which I need to display as a Choice Component like this
The query is working fine but I cannot find a way to get those 2 values together, having tried all sorts of things e.g. Split, Joined, Relations, Array etc.
The question is a bit like this one
but a bit different since here I need to display multiple values instead of a single value.
Thank you, that’s working fine, just the other way around I was doing :).
Sorry, but now I have related question, for which I have created a simplified table:
There are 7 Types in total, 36 Units and 49 Weeks making a total of 1.764 weeks for sale.
All possible weeks are inserted and the idea is that the users can only update the price in a Data Grid.
A filter by is not empty price is applied and all is working fine but I am getting all Weeks for sale for a selected Type but the clients wishes only to show the starting price of each Week, like this
Once again i tried queries, rollups etc but am always getting this kind of result
Can you show what you are using as the source of the data grid, and how how your query is configured? Is the table that you used to build the choice component the same table you are trying to filter?
If I’m following along correctly, I think what I would do is create a template in the Price table joining just the Type and Week. Then create a query column linking the template to itself and sort by price or unit (whichever is correct). Then create a Single Value column to retrieve the first Unit/Price from the query.
With that setup, you should be able to go to your previous query used for the choice component and add a condition where the single value Unit/Price is equal to the row’s Unit/Price.
Hope that makes sense. The Single Value should always contain the lowest Unit/Price for the Type/Week combo.