Forum Discussion
Field Parameters not working for any visual
- 4 years ago
Hi, Anonymous ;
Since the newly generated field parameter Choose Metrics is a text type, the Y-axis requirement in the bar graph is value, which is the number type, so blank will be displayed here.
Therefore, the following schemes can be used:1.create a new table.
Newtable = { "UnitsInStock", "UnitsOnOrder"}2.create a measure.
Measure = SWITCH(MAX('Newtable'[Value]),"UnitsInStock",SUM(Products[UnitsInStock]), "UnitsOnOrder",SUM(Products[UnitsOnOrder]))The final show:
Best Regards,
Community Support Team _ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thanks for taking the time to reply to my question v-yalanwu-msft . This is awesome.
Another way of doing this is to just create two new measures and add them to the field parameter.
MeasureUIS = SUM(Products[UnitsInStock])
MeasureUIO = SUM(Products[UnitsOnOrder])
This also worked for me.
Thanks all for taking interest in answering this q.
ravib
Ya, this is Working like a Magic !!