Forum Discussion
Anonymous
5 years agoNot applicable
Return Graph
Good morning, I have a question, In my table I get a column with years in it (a year can occures plenty of times) and 10 measures which are associated to this column, (M1,....M10). I would like to ...
- 5 years ago
Hi Anonymous ,
If you are using measures on your values you are not abble to get the result you need simply with the use of this measures and the year column.
Create a new table with all your measure names and and ID column something similar to:
ID MeasureName 1 Measure1 2 Measure2 ... ... 10 Measure10 Now create the following measure:
Selection = SWITCH ( SELECTEDVALUE ( Table[MeasureName] ), 1, [Measure1], 2, [Measure2], ..., ... 10, [Measure10] )Now make your line chart with the following setup:
- Axis: MeasureName (Column)
- Legend: Year (Column)
- Values: Selection (Measure)
Should return expected values
MFelix
5 years agoSuper User
Hi Anonymous ,
If you are using measures on your values you are not abble to get the result you need simply with the use of this measures and the year column.
Create a new table with all your measure names and and ID column something similar to:
| ID | MeasureName |
| 1 | Measure1 |
| 2 | Measure2 |
| ... | ... |
| 10 | Measure10 |
Now create the following measure:
Selection =
SWITCH (
SELECTEDVALUE ( Table[MeasureName] ),
1, [Measure1],
2, [Measure2],
..., ...
10, [Measure10]
)
Now make your line chart with the following setup:
- Axis: MeasureName (Column)
- Legend: Year (Column)
- Values: Selection (Measure)
Should return expected values