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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
OnixOnix
New Member

How to set in a graph the monthly rates on Y axis and ad a line with the quarterly values

Capture.PNG

 

I want to obtain in the power Bi desktop app the following graph but i am struggling to include the month and monthly rates on the same y axis. Could you please help me with this?

1 ACCEPTED SOLUTION
v-jiewu-msft
Community Support
Community Support

Hi @OnixOnix ,

First of all, many thanks to @lbendlin  for your very quick and effective replies.

Based on my testing, it is impossible to set the monthly rates on Y axis and add a line with the quarterly values. Please try the following methods as workaround:

1.Create the simple table.

vjiewumsft_0-1715565915303.png

2.Create the new measure to calculate the monthly rates.

 

Month rate = 
VAR month_val = SUMX('Table', 'Table'[Values])
VAR _tota = CALCULATE(SUM('Table'[Values]), ALL('Table'))
VAR result = DIVIDE(month_val, _tota)
RETURN
result

 

3.Create the new measure to calculate the quarterly values.

 

Quarter values = CALCULATE(SUM('Table'[Values]), ALLEXCEPT('Table', 'Table'[Quarter]))

 

4.Drag the two measures into the Line and column chart.

vjiewumsft_1-1715565985843.png

5.The result is shown below.

vjiewumsft_2-1715565992578.png

Best Regards,

Wisdom Wu

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

View solution in original post

3 REPLIES 3
v-jiewu-msft
Community Support
Community Support

Hi @OnixOnix ,

First of all, many thanks to @lbendlin  for your very quick and effective replies.

Based on my testing, it is impossible to set the monthly rates on Y axis and add a line with the quarterly values. Please try the following methods as workaround:

1.Create the simple table.

vjiewumsft_0-1715565915303.png

2.Create the new measure to calculate the monthly rates.

 

Month rate = 
VAR month_val = SUMX('Table', 'Table'[Values])
VAR _tota = CALCULATE(SUM('Table'[Values]), ALL('Table'))
VAR result = DIVIDE(month_val, _tota)
RETURN
result

 

3.Create the new measure to calculate the quarterly values.

 

Quarter values = CALCULATE(SUM('Table'[Values]), ALLEXCEPT('Table', 'Table'[Quarter]))

 

4.Drag the two measures into the Line and column chart.

vjiewumsft_1-1715565985843.png

5.The result is shown below.

vjiewumsft_2-1715565992578.png

Best Regards,

Wisdom Wu

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

Hello Thnak you for your response.

 

lbendlin
Super User
Super User

This goes against UX guidelines.  What would be the business benefit of such a display?

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.