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

How to create line value for each column series in line and clustered column chart

Hi,

 

I am using Power BI desktop and would like to show the line value for each column series ( severity ). I created a Quick measure for totals and used that for creating line values.

 

My table has column to calculate whether each defect is over target or under target depending on the cycletime.

 

2017-06-12_18-09-38.jpg

1 ACCEPTED SOLUTION
v-yulgu-msft
Employee
Employee

Hi @belurrashmi,

 

From below image, we can see the legend in a line chart can divide a line into several series based on legend items. However, the legend in a combination chart seems doesn't work, because it only applies to column bars in a combination chart.

1.PNG

 

To work around that, you should create multiple measures to generate multiple lines based on different legend items.

Count over High =
CALCULATE (
    COUNT ( 'Line chart'[Target] ),
    FILTER (
        'Line chart',
        'Line chart'[Level] = "High"
            && 'Line chart'[Target] = "Over Target"
    )
)

Count over Low =
CALCULATE (
    COUNT ( 'Line chart'[Target] ),
    FILTER (
        'Line chart',
        'Line chart'[Level] = "Low"
            && 'Line chart'[Target] = "Over Target"
    )
)

Count over Medium =
CALCULATE (
    COUNT ( 'Line chart'[Target] ),
    FILTER (
        'Line chart',
        'Line chart'[Level] = "Medium"
            && 'Line chart'[Target] = "Over Target"
    )
)

3.PNG

 

Besides, you can submit a feature request on idea.

 

Best regards,
Yuliana Gu

Community Support Team _ Yuliana Gu
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-yulgu-msft
Employee
Employee

Hi @belurrashmi,

 

From below image, we can see the legend in a line chart can divide a line into several series based on legend items. However, the legend in a combination chart seems doesn't work, because it only applies to column bars in a combination chart.

1.PNG

 

To work around that, you should create multiple measures to generate multiple lines based on different legend items.

Count over High =
CALCULATE (
    COUNT ( 'Line chart'[Target] ),
    FILTER (
        'Line chart',
        'Line chart'[Level] = "High"
            && 'Line chart'[Target] = "Over Target"
    )
)

Count over Low =
CALCULATE (
    COUNT ( 'Line chart'[Target] ),
    FILTER (
        'Line chart',
        'Line chart'[Level] = "Low"
            && 'Line chart'[Target] = "Over Target"
    )
)

Count over Medium =
CALCULATE (
    COUNT ( 'Line chart'[Target] ),
    FILTER (
        'Line chart',
        'Line chart'[Level] = "Medium"
            && 'Line chart'[Target] = "Over Target"
    )
)

3.PNG

 

Besides, you can submit a feature request on idea.

 

Best regards,
Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Would you be able to start the line values according to the lenger. For example show the line values Count of HIGH from the column Level HIGH and similarly the line  Count of Medium originate from the column Medium. At the moment it seem to be originating from the middle of the column

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.