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
Lobo1908
Helper I
Helper I

Pareto chart in power BI not adding identical values

I've got an issue with my Pareto chart. It is basically not adding identical values on top of each other when it comes to the line values. As seen in the picture below codes CHP01, DAM02 and PNT08 have the same value of 3. The line chart shows them all at level 83.3% which should be the level of the last of this value.

 

Lobo1908_2-1646405126003.png

 

When all values are different the line looks fine, please see an example

 

 

Lobo1908_3-1646405222614.png

 

I'm using the following measure to count the number of values in a string and in Column values in my visual

VAR __SearchTerms =
    ADDCOLUMNS (
       'C_Codes_lookup2',
        "Count",
            COUNTROWS (
                FILTER (
                    'C_Report',
                    FIND ( [Code], 'C_Report'[reportedfault],, 0 ) > 0
                )
            )
    )
RETURN
    SUMX ( __SearchTerms, [Count] )

And the following measure to establish the Pareto chart and as line value in my visual

VAR StateRev = [1.1 C Codes Count]
VAR ALLCodes = CALCULATE([1.1 C Codes Count], ALLSELECTED(C_Codes_lookup2[Code]))
RETURN
DIVIDE(
SUMX(
    FILTER(
        SUMMARIZE(ALLSELECTED(C_Codes_lookup2[Code]), C_Codes_lookup2[Code],
            "Cumulative", [1.1 C Codes Count]),
                [Cumulative] >= StateRev ),
                    [Cumulative]),
    ALLCodes, 0) 

Could someone be so kind and help me solve this issue.

1 ACCEPTED SOLUTION

@littlemojopuppy

PREVIEW
 
Just downloaded the sample to double-check it there and there are 2 Pareto charts in it. 

 
 Lobo1908_0-1646671247505.png

The measures for them are in C_report and DI_report 

View solution in original post

4 REPLIES 4
Lobo1908
Helper I
Helper I

@Lobo1908 not seeing a Pareto chart in here...

@littlemojopuppy

PREVIEW
 
Just downloaded the sample to double-check it there and there are 2 Pareto charts in it. 

 
 Lobo1908_0-1646671247505.png

The measures for them are in C_report and DI_report 

littlemojopuppy
Community Champion
Community Champion

Hi @Lobo1908 can you provide some sample data to work with?

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.