Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Chart Y-axis formatting with Calculation group

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

 

ABC.png

Kind Regards 

Ashwani

4 REPLIES 4
v-alq-msft
Community Support
Community Support

Hi, @Anonymous 

 

Based on your description, I created data to reproduce your scenario. The pbix file is attached in the end.

Table:

b1.png

 

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'.

b2.png

 

b3.png

 

Finally you may use 'Line and clustered column chart' to display the result.

b4.png

 

b5.png

 

Best Regards

Allan

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

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

amitchandak
Super User
Super User

@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

 

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

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

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors