Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi All
I want to achieve the chart according to the screenshot. There are 2 different product, 1 is for Market Share & another for Volume. When user will select Product-A then chart should show data in percentage, and when user select Product-B, chart should show simple number. I think so, we can achieve the same through caluclation group, however, not able to achieve the same. Please suggest
Kind Regards
Ashwani
Hi, @Anonymous
Based on your description, I created data to reproduce your scenario. The pbix file is attached in the end.
Table:
You may create two measures as below.
Single Value =
IF(
SELECTEDVALUE('Table'[Product])="B",
SUM('Table'[Val])
)
Percentage =
IF(
SELECTEDVALUE('Table'[Product])="A",
SUM('Table'[Val])
)
Then you may format 'Single Value' as 'Whole number' and 'Percentage' as 'Percentage'.
Finally you may use 'Line and clustered column chart' to display the result.
Best Regards
Allan
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thanks @v-alq-msft for your response. Actually, I want to achieve the same thing in single chart.
I think so, we can achieve the same with Calcultion Group as Microsoft has shared same example in Aug;20 release. However, not able to find Aug;20 PBIX file on GitHub.
Please suggest, how we can resolve this issue
Kind Regards
Ashwani
@Anonymous ,I think this case is ideal for bookmark and buttons
https://radacad.com/bookmarks-and-buttons-making-power-bi-charts-even-more-interactive
Another option is measure slicer based on Product1 and Product2 values.
https://radacad.com/change-the-column-or-measure-value-in-a-power-bi-visual-by-selection-of-the-slicer-parameter-table-pattern
https://community.powerbi.com/t5/Desktop/Slicer-MTD-QTD-YTD-to-filter-dates-using-the-slicer/td-p/500115
Hi Amit
Thanks for your response. I have multiple products and order can be anything like Market Share, Market share, Volume etc.
So, thatwahy can't use bookmark.
And, in 2nd link, yaxis format is not changing.
Kind Regards
Ashwani
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
114 | |
99 | |
83 | |
70 | |
61 |
User | Count |
---|---|
149 | |
114 | |
107 | |
89 | |
67 |