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

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.

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

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.