Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
somnath6309
Helper I
Helper I

How to Create a Chart Visual for ABC Analysis

Hi,

the following matrix visual is about ABC Analysis of Product :

somnath6309_0-1763643340003.png

pls let us know how to create a Chart visual (preferably a combo chart : Line + Column) to show this ABC Analysis ? 

I have attached the original pbix file for reference. It will be very helpful if the chart is added to the file. 

Regards,

Somnath

ABC Analysis pbix 

2 ACCEPTED SOLUTIONS
MFelix
Super User
Super User

Hi @somnath6309 ,

 

You just need to select the combo chart on the build bar

 

MFelix_0-1763648126043.png

 

Now you can setup the values has you need:

MFelix_1-1763648157721.png



Or do you want to have additional details like each product and each ABC Class?


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



View solution in original post

Ritaf1983
Super User
Super User

Hi @somnath6309 

What you are asking for is simply a standard combo chart:
bars for NumOfProducts and a line for Margin, like in the picture:

Ritaf1983_0-1763651652805.png

 

However, it’s important to mention that this visual is not ideal for this type of comparison.

A line chart is designed to show trends over time.
In ABC classification there is no time axis – only categories (A/B/C).
Using a line here creates a false impression of a trend that doesn’t actually exist.

Using two different Y-axes makes the visual hard to interpret.
The bar scale and the line scale are unrelated, so the shapes visually “cut” through each other even though the measures have completely different ranges.
This adds unnecessary cognitive load for the user.

If the goal is to compare the behavior of two measures across ABC groups, a cleaner and more accurate approach is to place two separate charts, one above the other, inside a single frame.
This allows the user to:

understand each measure independently

compare categories clearly

avoid scale confusion

The second image demonstrates this structure very well:

Ritaf1983_1-1763651708388.png

 

In summary:
A combo chart will work technically, but if the goal is clear and effective data visualization, two aligned charts (one for Margin and one for NumOfProducts) will give a much better result.

The pbix is attached

If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

View solution in original post

5 REPLIES 5
v-tsaipranay
Community Support
Community Support

Hi @somnath6309 ,

Thank you for reaching out to the Microsoft Fabric Community Forum.

 

Could you please let us know if the issue has been resolved? I wanted to check if you had the opportunity to review the information provided by @MFelix , @Zanqueta and @Ritaf1983  . If you still require support, please let us know, we are happy to assist you.

 

Thank you.

Ritaf1983
Super User
Super User

Hi @somnath6309 

What you are asking for is simply a standard combo chart:
bars for NumOfProducts and a line for Margin, like in the picture:

Ritaf1983_0-1763651652805.png

 

However, it’s important to mention that this visual is not ideal for this type of comparison.

A line chart is designed to show trends over time.
In ABC classification there is no time axis – only categories (A/B/C).
Using a line here creates a false impression of a trend that doesn’t actually exist.

Using two different Y-axes makes the visual hard to interpret.
The bar scale and the line scale are unrelated, so the shapes visually “cut” through each other even though the measures have completely different ranges.
This adds unnecessary cognitive load for the user.

If the goal is to compare the behavior of two measures across ABC groups, a cleaner and more accurate approach is to place two separate charts, one above the other, inside a single frame.
This allows the user to:

understand each measure independently

compare categories clearly

avoid scale confusion

The second image demonstrates this structure very well:

Ritaf1983_1-1763651708388.png

 

In summary:
A combo chart will work technically, but if the goal is clear and effective data visualization, two aligned charts (one for Margin and one for NumOfProducts) will give a much better result.

The pbix is attached

If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile
Zanqueta
Resolver III
Resolver III

Hello @somnath6309,

 

I tested in your file and worked. Coud you test it from your side:

Cumulative % by Category = 
VAR CategoryTable = ALLSELECTED('Product'[Category])
VAR RankCategory =
    RANKX(
        CategoryTable,
        [Sales Amount],
        ,
        DESC,
        Dense
    )
VAR CumulativeSales =
    CALCULATE(
        SUMX(
            FILTER(
                CategoryTable,
                RANKX(CategoryTable, [Sales Amount], , DESC, Dense) <= RankCategory
            ),
            [Sales Amount]
        )
    )
VAR TotalSales = CALCULATE([Sales Amount], REMOVEFILTERS('Product'))
RETURN
    DIVIDE(CumulativeSales, TotalSales)

 

ABC Class = 
VAR CumPct = [Cumulative % by Category]
RETURN
    SWITCH(
        TRUE(),
        CumPct <= 0.8, "A",
        CumPct <= 0.95, "B",
        "C"
    )

 

 

Zanqueta_0-1763648921515.png

 

 

If this response was helpful in any way, I’d gladly accept a 👍much like the joy of seeing a DAX measure work first time without needing another FILTER.

Please mark it as the correct solution. It helps other community members find their way faster (and saves them from another endless loop 🌀.

 

MFelix
Super User
Super User

Hi @somnath6309 ,

 

You just need to select the combo chart on the build bar

 

MFelix_0-1763648126043.png

 

Now you can setup the values has you need:

MFelix_1-1763648157721.png



Or do you want to have additional details like each product and each ABC Class?


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



Hi, @MFelix 

I want to have additional details like each product and each ABC Class.

Regards,

Somnath

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors