Forum Discussion
Multi-Select Measures in Line Chart
Hello Experts,
I have a requirement to display default measures, "Total Sales" and "Total Profit," in a Line chart, which I have successfully achieved.
Additionally, I am able to dynamically select measures such as "Discount," "Profit," "Qty," and "Sales."
However, I am encountering an issue with multi-selecting these measures ("Discount," "Profit," "Qty," and "Sales").
PBIX is attached in this link : Dyamnic Line Chart - Multi Select Measures.pbix
Thank you in advance.
puru85 you can easily achieve this with field parameters, see attached. Check field parameters related videos on my YT channel.
- Anonymous2 years ago
Hi puru85 ,
Thanks for mh2587 and parry2k reply.
Here's what I want to add:
Create a Filed ParameterCreate a column in Parameter table
Measure Name = IF( Parameter[Parameter] = "Discount", "Discount", "Qty" )
Create relationship between "Parameter[Measure Name]" and “Dynamic Measure[Measures]”Create a measure
Measure = IF( SELECTEDVALUE('Dynamic Data'[Measures]) IN VALUES(Parameter[Measure Name]), 1, 0 )Slicer settings
In line cahrt field use "Total profit","Total Sales",“Parameter”Final output
Best regards,
Albert HeIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly
7 Replies
- mh2587
Super User
You need new field Parameter for that
- puru85
Helper II
- AnonymousNot applicable
Hi puru85 ,
Thanks for mh2587 and parry2k reply.
Here's what I want to add:
Create a Filed ParameterCreate a column in Parameter table
Measure Name = IF( Parameter[Parameter] = "Discount", "Discount", "Qty" )
Create relationship between "Parameter[Measure Name]" and “Dynamic Measure[Measures]”Create a measure
Measure = IF( SELECTEDVALUE('Dynamic Data'[Measures]) IN VALUES(Parameter[Measure Name]), 1, 0 )Slicer settings
In line cahrt field use "Total profit","Total Sales",“Parameter”Final output
Best regards,
Albert HeIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly
- puru85
Helper II
Hi Anonymous,
Thank you very much for deatiled information on the implementation. However your current PBIX is not exactly achiving my requirement.
Let me share you the requirement here with visual reference:
By Default, The line chart should show "Total Sales" and "Total Profit". Below is the snap shot for reference.However, When user select any parameter in filter, that particular measure should be displayed with multi select option. Below for referece.
Hope you can help me with this!
Thank you!
- puru85
Helper II