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
RohiniP-26
Resolver I
Resolver I

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.

 

 

 

 

amitchandak
Super User
Super User

@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/

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.