Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hi,
I wanted to add a Parameter in a Line Chart. The following Line Chart was created in Power BI Desktop:
It shows month wise "Sales", "Profit" and "Quantity" ( Quantity is shown in secondary Y axis).
Now, user may want to choose "Sales", "Profit" or "Quantity" from a Slicer and view the chart accordingly. For this reason I had created a PARAMETER called "ShowValueForChart" and created a the folloiwng slicer for the same:
the Table named "ShowValueForChart" is as follows:
I have also created a measure named Value Selection which captures the current selection from the slicer. Following is the code:
Pls let me know what needs to be done to get the desired result.
Regards,
Somnath
Solved! Go to Solution.
Hi @somnath6309 ,
According to your description, here are my steps you can follow as a solution.
(1) We can create three measures.
_Order qiantity = SUM('Table'[Order Qiantity])
_Profit = SUM('Table'[Profit])
_Sales = SUM('Table'[Sales])
(2) We can create a field parameter.
(3) Then the result is as follows.
If the above one can't help you get the desired result, please provide some sample data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. Thank you.
Best Regards,
Neeko Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @somnath6309 ,
According to your description, here are my steps you can follow as a solution.
(1) We can create three measures.
_Order qiantity = SUM('Table'[Order Qiantity])
_Profit = SUM('Table'[Profit])
_Sales = SUM('Table'[Sales])
(2) We can create a field parameter.
(3) Then the result is as follows.
If the above one can't help you get the desired result, please provide some sample data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. Thank you.
Best Regards,
Neeko Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
97 | |
65 | |
45 | |
39 | |
31 |
User | Count |
---|---|
164 | |
111 | |
61 | |
53 | |
38 |