I was trying to change the measures using the slicer in the Power Bi Desktop. There are few examples which I found, They have created a table which have ID and measure names and they have created a switch function as shown in the below example
Measure Value = SWITCH(
MIN('Dynamic'[Measure ID]) ,
1,[Max Temp],
2,[Min Temp],
3,[Air Pressure],
4,[Rainfall],
5,[Wind Speed],
6,[Humidity]
)
Dynamic is a group which contain ID and Measure names
Measure ID | Measure Name
1 | Max Temp
2 | Min Temp
3 | Air Pressure
4 | Rainfall
5 | Wind Speed
But here I am having some many columns and cannot convert into the measures one by one
Is there anyway to solve it?