cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
RohiniP-26
Helper III
Helper III

show multiple lines in line and clustered column chart

Hi All,

RohiniP-26_0-1613631926326.png

 

I have used Line and clustered column chart visual in the above image. X- axis has brand names and Y-axis shows Sales quantity.

Line axis shows Sales rate.

If I select two years in the Year filter, bar in the chart split by year but not line. I need to show two lines as like bars in the above chart. Is this Possible ? Or any other visual suits this requirement ?

 

 

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

Hi @RohiniP-26 ,

 

" I need to show two lines as like bars in the above chart. "

 

v-lionel-msft_1-1613972194363.png

Max of selected value = 
VAR x = MAX(Sales[Month])
RETURN
SUMX(
    FILTER( Sales, [Month] = x ),
    [Sale 2015]
)

Min of selected value = 
VAR x = MIN(Sales[Month])
RETURN
SUMX(
    FILTER( Sales, [Month] = x ),
    [Sale 2015]
)

Unless you define two measures as above, you need to consider using a custom visual.

 

v-lionel-msft_2-1613972304718.png

But I suggest you display the bar graph and line graph separately.

 

Best regards,
Lionel Chen

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

2 REPLIES 2
v-lionel-msft
Community Support
Community Support

Hi @RohiniP-26 ,

 

" I need to show two lines as like bars in the above chart. "

 

v-lionel-msft_1-1613972194363.png

Max of selected value = 
VAR x = MAX(Sales[Month])
RETURN
SUMX(
    FILTER( Sales, [Month] = x ),
    [Sale 2015]
)

Min of selected value = 
VAR x = MIN(Sales[Month])
RETURN
SUMX(
    FILTER( Sales, [Month] = x ),
    [Sale 2015]
)

Unless you define two measures as above, you need to consider using a custom visual.

 

v-lionel-msft_2-1613972304718.png

But I suggest you display the bar graph and line graph separately.

 

Best regards,
Lionel Chen

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

amitchandak
Super User IV
Super User IV

@RohiniP-26 , If you want that line should split by legends in clustered line visual, I doubt that is possible. You need to check for some custom visual

https://appsource.microsoft.com/en-us/marketplace/apps?product=power-bi-visuals

 

or log an idea -https://ideas.powerbi.com/ideas/



Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Dashboard of My Blogs !! YouTube Channel !! Connect on Linkedin

Proud to be a Super User!

Helpful resources

Announcements
MBAS on Demand

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

July 2021 Update 768x460.png

Check it out!

Click here to read more about the July 2021 Updates

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Top Solution Authors
Top Kudoed Authors