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
YashikaAgrawal
Regular Visitor

Line value not coming as expected

Line_issueLine_issue

 

Hi,

 

This is line and clustered column chart, 2 issues please help

a. The blue line (line values) is not starting from the first chart (blue one)

b. The pink and blue bar need a gap.

Any suggestions would be appreciated.

 

Thanks,

 

6 REPLIES 6
mussaenda
Super User
Super User

Hi @YashikaAgrawal,

 

 

a. The blue line (line values) is not starting from the first chart (blue one)

It is normal that the line is not starting from the first bar if you mean bar and not chart, because it is a group so the line will start in the middle.

 

b. The pink and blue bar need a gap.

I don't get why you need a space between them but as I stated above, you are delaring it as a group that's why. If you need a gap between them or between pink and blue, you need to elaborate your x axis.

 

Hope this helps.

Thanks for the reply.

 

I have attached the expected report, please let me know what changes has be done.

ExpectedOneExpectedOne

HI @YashikaAgrawal,

You can write multiple measure formals with if statements to check current range and skip calculate on unmatched records, then you can use these measure formula on 'line value' field to achieve your requirement.

If you confused about coding formula, please share some dummy data with the expected results to test and coding formula.

Regard,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

Thank you for the replies.

 

Attached the source data and the expected output, please let me know the formula to be used to get this, Thank you.

ExpectedReportExpectedReport

 

Excel could not attached here, below is the source data.

PropertyIDYearTypeDescriptionChart ValueCompset
112015MPIMessage Passing Interface11785
112016MPIMessage Passing Interface11786
112017MPIMessage Passing Interface13170
112018MPIMessage Passing Interface12481
112019MPIMessage Passing Interface13972
112015ARIAgharkar Research Institute94106
112016ARIAgharkar Research Institute88114
112017ARIAgharkar Research Institute97103
112018ARIAgharkar Research Institute98103
112019ARIAgharkar Research Institute90

111

 

HI @YashikaAgrawal,

Based on my test, I found line value will be forced summarize by axis and legend field not works to split these on line graph. I'd like to suggest you to use r visual to draw clustered column chart graph and split line graph at the same time.

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

Create 3 separate charts to achieve your desired output.

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.