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
kkanda
Resolver I
Resolver I

Bar chart with marking for Quarters

I am representing the annual target on a bar chart and comparing with the completion data every month during the year. The monthly data is cumulative - that is April data consists of the sum of four months in the year. That is basically two bars, annual target on the top and YTD month-end data below that bar.  I am not using any time scale on the chart. I only indicate the YTD (year to date) month in a card above the chart. The two bars represent two numbers.

I want the top bar, representing the annual target, to be marked Q1,Q2 and Q3 at equal intervals. Which is the simplest way to achieve that?

1 ACCEPTED SOLUTION

Hi, @kkanda 

Thanks for your quick response!

Sorry I misunderstood you, from your description you want to divide one of your values into 4 equal parts.

This is my test data:

vyueyunzhmsft_0-1686619972138.png

We can create three measures as the constant line.

Q1 = [Total]/4
Q2 = [Total]/2
Q3 = ([Total]/4)*3

Then we can configure the measure on the "Constant Line":

vyueyunzhmsft_1-1686620134455.png

 

Best Regards,

Aniya Zhang

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

4 REPLIES 4
kkanda
Resolver I
Resolver I

Thank you. This has helped me in dividing the target value to 4 parts.

kkanda
Resolver I
Resolver I

Probably I was not clear what I am looking for. In the attached chart, 1064 is the annual target and 250 is the completed number up to end of April. The X- Axis is a number and there is no Y-Axis. I want the bar representing 1064 to be divided in 4 equal parts marking as "Q1", "Q2", "Q3" and "Q4". 

kkanda_0-1686581000602.png

 

Hi, @kkanda 

Thanks for your quick response!

Sorry I misunderstood you, from your description you want to divide one of your values into 4 equal parts.

This is my test data:

vyueyunzhmsft_0-1686619972138.png

We can create three measures as the constant line.

Q1 = [Total]/4
Q2 = [Total]/2
Q3 = ([Total]/4)*3

Then we can configure the measure on the "Constant Line":

vyueyunzhmsft_1-1686620134455.png

 

Best Regards,

Aniya Zhang

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

v-yueyunzh-msft
Community Support
Community Support

Hi, @kkanda 

According to your description, you have calculated the value of YTD, do you want to divide the value of YTD into quarters?

If this , you can just create a calculated column in your table:

Column = "Q"& QUARTER([Date])

vyueyunzhmsft_0-1686534939234.png

Then you can the column to the dimension field and your measure on the value , then we can get this:

vyueyunzhmsft_1-1686534989897.png

 

 

If this method does not meet your needs, you can provide us with your special sample data and the desired output sample data in the form of tables, so that we can better help you solve the problem. (You can also upload you sample .pbix [without sensitive data] to the OneDrive and share with the OneDrive link to me ! )

Thank you for your time and sharing, and thank you for your support and understanding of PowerBI! 

 

Best Regards,

Aniya Zhang

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

 

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.