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
AnurragGaurav
Frequent Visitor

Bar graph with duplicate value on y-axis

I have a requirement to create a Bar graph with duplicate values on y-axis. For example: For a current day, "Job 2" runs twice and it takes 20 mins for first run and 40 mins for next run.

 

How can I achieve this? I want that above would not effect any slicer or filter conditions.

 
 
1 ACCEPTED SOLUTION

Hi @AnurragGaurav

 

My suggestion is a workaround for you,as in bar chart,for the same category,the related value will be aggregated while showing in the graph,so the best way is to make a difference for "their names".

 

Best Regards,
Kelly
Did I answer your question? Mark my post as a solution!

View solution in original post

5 REPLIES 5
v-kelly-msft
Community Support
Community Support

Hi @AnurragGaurav ,

 

1.Go to query editor and add an index column;

2.Using below dax expression to create a calculated column :

 

Column = 'Table'[Column1] & "-"&'Table'[Index]

 

And you will see:

Annotation 2020-04-07 122642.png

3.Finally you will see:

 

Annotation 2020-04-07 122749.png

 

I made a sample .pbix file you can refer to.pls click here.

 

Best Regards,
Kelly
Did I answer your question? Mark my post as a solution!

Hi @v-kelly-msft ,

 

Thanks for the response. However, as per your graph. We wanted to display "Job 2-1" and "Job 2-2" as Job 2 only. This is possible in excel. So, how can we achieve that in Power BI?

 

Regards,

Anurrag Gaurav

Hi @AnurragGaurav

 

My suggestion is a workaround for you,as in bar chart,for the same category,the related value will be aggregated while showing in the graph,so the best way is to make a difference for "their names".

 

Best Regards,
Kelly
Did I answer your question? Mark my post as a solution!
Greg_Deckler
Super User
Super User

Would need to see sample data. What is on your x-axis? Job number? If you had a "run" column, you could create an ad-hoc hierarchy for the x-axis and drill into it.


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

We have the following data.

Y-Axis "Job name"                                X-Axis "RunTime in Minutes"
Job1                                                      10
Job2                                                      20
Job3                                                      30
Job2                                                      50

x-axis will have run time, and the job name will be on the y-axis. However, job name should get duplicated. Fox example: Job2 would occur twice on y-axis.

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.