- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Select a specific value from a table
Hi,
I have created a messure from one table and i want to use that output of the messure to get a specific number from another table;
Lets say that my messure shows 2 then i want to use below table to get Value 1000.
From | To | Value |
0 | 5 | 1000 |
6 | 10 | 2000 |
11 | 15 | 3000 |
I have tried with SELECTEDVALUE() and i get this result, it almost works,
"Picked Value = IF([A]>= SELECTEDVALUE('Value Table'[Fr]) && [A]<= SELECTEDVALUE('Value Table'[To]),SELECTEDVALUE('Value Table'[value]))"
Picked Value | A | value |
1000 | 2 | 1000 |
2 | 2000 | |
2 | 3000 |
But when removing column A and Value column "Picked Value" ends up empty
Picked Value |
How can i solve this
Regards
Christian
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Hi @Power_Krille ,
SELECTEDVALUE function not suitable to handle the row context that mixed with multiple records. (it will return blank when you use it on aggregate multiple row contexts)
If you want to use these expression without column A, you can try to create a variable table with current category and correspond A value and use them to get corresponding Value from the segmentation table, then you can do aggregate with these results:
Picked Value =
VAR summary =
SUMMARIZE (
ALLSELECTED ( Table ),
[Category],
[A],
"Result",
MAXX (
FILTER (
ALLSELECTED ( 'Value Table' ),
'Value Table'[Fr] <= currVal
&& 'Value Table'[To] >= currVal
),
[value]
)
)
RETURN
SUMX ( summary, [Result] )
Regards,
Xiaoxin Sheng
If this post helps, please consider accept as solution to help other members find it more quickly.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Hi @Power_Krille ,
SELECTEDVALUE function not suitable to handle the row context that mixed with multiple records. (it will return blank when you use it on aggregate multiple row contexts)
If you want to use these expression without column A, you can try to create a variable table with current category and correspond A value and use them to get corresponding Value from the segmentation table, then you can do aggregate with these results:
Picked Value =
VAR summary =
SUMMARIZE (
ALLSELECTED ( Table ),
[Category],
[A],
"Result",
MAXX (
FILTER (
ALLSELECTED ( 'Value Table' ),
'Value Table'[Fr] <= currVal
&& 'Value Table'[To] >= currVal
),
[value]
)
)
RETURN
SUMX ( summary, [Result] )
Regards,
Xiaoxin Sheng
If this post helps, please consider accept as solution to help other members find it more quickly.

Helpful resources
Subject | Author | Posted | |
---|---|---|---|
06-18-2024 02:50 AM | |||
04-03-2024 11:49 AM | |||
Anonymous
| 08-18-2021 11:09 AM | ||
Anonymous
| 01-25-2023 07:41 AM | ||
06-05-2024 01:43 PM |
User | Count |
---|---|
123 | |
104 | |
84 | |
49 | |
46 |